#!/bin/sh script=${1+"$@"} src=$$.cs bin=$$.exe perl -nle 'print if 1<$. || !/^#!/' $script > /tmp/$src cd /tmp mcs $src && mono ./$bin rm $src $bin