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