How to write a shell script