Shell Scripting She-bang

The sign #! is called she-bang and is written at top of the script. It passes instruction to program /bin/sh.

To run your script in a certain shell (shell should be supported by your system), start your script with #! followed by the shell name.

Example:

#!/bin/bash  

echo Hello World  

#!/bin/ksh  

echo Hello World

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *