compact-shellscript.sed
changeset 1 dbce0b16b0c1
equal deleted inserted replaced
0:8e044e762a6c 1:dbce0b16b0c1
       
     1 #!/bin/sed -f
       
     2 # Remove comments, except for the shebang
       
     3 s/^ *#[^!#].*$//
       
     4 # Remove spaces at the beginning of all lines
       
     5 s/^ *//
       
     6 # Remove empty lines
       
     7 /^$/d