Question
How can I exclude lines starting with a space character, and that have nothing else on the line? With awk, I want to print the line Need to print
, but it's also printing the blank line. How can I exclude it?
Script: test.awk
$0 !~/^start|^#/ {
print "Result : %s",$0
}
Data
# test
start
Need to print
Result
Result : %s
Result : %s Need to print