[olug] Unix Tip: FINDING BLANK LINES

Jay Hannah jay at jays.net
Sat May 17 15:04:02 UTC 2003


Unix Guru Universe wrote:
> cat filename |awk ' /^$/ { ++x } END ( print "No. of Blank Lines = " x } '

grep -E '^$' filename | wc -l

Jay Hannah
Omaha Perl Mongers: http://omaha.pm.org


More information about the OLUG mailing list