How to write shell script