People who are new to shell scripting or are new to it often hear the term "shebang". If you're one of them, then you might have seen the shebang symbol in the topmost line in any shell script but maybe you're not sure what it means or what's its significance.
The symbol #! i.e shebang is part of the topmost statement of a shell script which is used to tell which interpreter you'll be using.
Eg:
#!/usr/bin/bash (Bash interpreter)
#!/usr/local/perl (invokes the Perl interpreter)
#!//usr/bin/ksh (Korn shell interpreter)
#!/usr/bin/awk (use the AWK interpreter)
The symbol #! i.e shebang is part of the topmost statement of a shell script which is used to tell which interpreter you'll be using.
Eg:
#!/usr/bin/bash (Bash interpreter)
#!/usr/local/perl (invokes the Perl interpreter)
#!//usr/bin/ksh (Korn shell interpreter)
#!/usr/bin/awk (use the AWK interpreter)
No comments:
Post a Comment