How to write a bash script in linux?