compact-shellscript.sed
author Dan
Tue, 23 Jun 2009 09:55:13 -0400
changeset 2 7dddb5fb1595
parent 1 dbce0b16b0c1
permissions -rwxr-xr-x
Me and my obsession with getting files to exactly 2048 bytes.

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