How to find number of blank
lines in a file use the
following command:
cat filename |awk ' /^$/ { ++x } END ( print "No. of Blank Lines = " x } '
This tip generously supported by: deepak.singla@ehpt.com NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.