What is #!?


The "shebang" syntax is the number sign followed by an exclaimation point and is embedded in most UNIX scripting languages to tell the computer what interpreter to use to run the script when the script is executed. This goes on the first line of your script, followed by the path to the program that will run, or interpret, you script, followed by a space and any other options you want to pass to the interpreter, finished by a carriage return. Nothing else can go on this line as seen in the Perl script below:

#!/bin/perl -w


# My first "Hello World!" script in Perl


print "Hello World! ";

#!/bin/perl <-- Tells a computer to use the perl executable to run the script to follow.

#!/bin/ksh <-- Tells a computer to use the UNIX ksh (k shell) to run the script to follow.

... and so on...

See shebang, perl, sh, bash, script, interpreter, ash, programming


Shebang - A comment in shell scripting

#! bin/kse


More Slangs:

1. A sexy ukrainian woman who knows no limit when it comes to pleasing her man with regard to food and sex. Im jealous of that ukie chick,..
1. God and Creator of all. Except World of Warcraft, even God can't fix all that lag and bullshit And on the 7th day Dramlor rested...
1. derivative of enlarge, meaning to boost or strengthen, or to be filled with, in an emotional context. 'A noble spirit embiggins th..