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


Random Words:

1. Que Honda means in slang in south america - What up!? a latino person woud say Que Honda Holmes? See spanish, cuba, equador 1. Que H..
1. The act of catching a girls or guys eye while sitting in busy traffic, often resulting in friendly smiles and maybe a wink. Extreme suc..
1. Dendri is a 1337 awesome ninjacharacter played in several games. Could be used in a phrase : "to pull a Dendri" if a large amo..