{ # 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 } }