compact-shellscript.sed
author Dan Fuhry <dan@enanocms.org>
Mon, 05 Jul 2010 23:29:07 -0400
changeset 4 c6c431cf0a89
parent 1 dbce0b16b0c1
permissions -rwxr-xr-x
OS X compatibility hell yeah!

#!/bin/sed -f
# Remove comments, except for the shebang
s/^ *#[^!#].*$//
# Remove spaces at the beginning of all lines
s/^ *//
# Remove empty lines
/^$/d