compact-shellscript.sed
author Dan
Tue, 23 Jun 2009 09:51:01 -0400
changeset 1 dbce0b16b0c1
permissions -rwxr-xr-x
Added shellscript compactor to reduce size of self-extract script

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