open core »

The shebang

Do you know that first line that almost every script in Unix has, that starts with an '#!' ? That's what shebang is. I must admit that this is a new word for me. Although I have already used that line allot.

Here's some examples of shebangs:

The bash script:

#!/bin/bash

The python script:

#!/usr/bin/env python

The perl script with argument to enable warnings:

#!/usr/bin/perl -w

You can find more info about etimology, history, etc. in the usual place.