Change from php to bash