Bash basics, how to organize a script