1 2 3 4 5 6 7 8 9 10 11 12 13
{ # Shell like comments gsub(/^#.*$/, "", $0) # Strip leading and trailing white space gsub(/^[[:blank:]]*/, "", $0) gsub(/[[:blank:]]*$/, "", $0) # Only accept the line, if it contains something if (NF) { print $0 } }