#!

What is #!?


1.

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

2.

Shebang - A comment in shell scripting

#! bin/kse


59

Random Words:

1. Also known as the Leprechaun Offensive, this is when a short man, dressed similarly to a leprechaun, will stare at you from across the r..
1. Serious sexual activity. Hardcore and very fast moving with the testicles slapping up against the "taint" area of the female f..
1. 1: An explanation to things in which there is no other explanation 2: A Clan/cult/group of crazy fangirls that love Tom Felton. 3: li..
Book Banner