77.sumeet@gmail.com wrote:
> Is it just by changing the permissions to execute ( chmod x script.sh)?
chmod +x script.sh
^
This will tell the system it's an executable, so "try to execute it".
To tell the system (or the shell) how to execute it, you to put the #!
line at the top of the file.
--
Alex.