Rewrite first script in bash