Counting blank lines in
a file which may include
spaces and tabs:
cat filename |awk ' /^['\ '|'\\t']*$/ { ++x } END { print "No. of Blank Lines = " x } '
This tip generously supported by: rajibroy@engineer.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.