Sed MCQ : 14


Q. Remove blank lines of a file and then print?





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"