Originally Posted by kratosal
hey plz note there is indeed a # before every line........
plz tell me when should i use chmod thing before or after or when and exactly how
The "#" denotes a comment---if there is a "#" on every
line, then nothing will execute.
The "#!" has to be on the first line to tell the system what language is used to interpret the script.
chmod is used to change permissions on an existing file---i.e. you first create the file, then you set the permissions.
What books have you read on all this? Now might be the time to go to http://tldp.org
and get Bash Guide for Beginners, or the Advanced Bash Scripting Guide.