Awk MCQ : 9

Q. Print non-empty lines of a file?

Contributed by: admin

Input fileName:

#This is a comment
#Below is an empty line

echo "Hello World"
echo "This file just contains few echo statements"

echo "Lines starting with # is comment and won't be printed on screen"
echo "This is a dummy line"

echo "Below are few empty lines"

echo "Last line of the file"