EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ Shell Scripting ]

"Counting Blank Lines" - Ülkü SAYILAN - (2004-08-02 10:23:00)   [4398]

Counting Blank Lines

Counting blank lines in a file which may include
spaces and tabs:

cat filename |awk ' /^['\ '|'\\t']*$/ { ++x } END { print "No. of Blank Lines = " x } '

Mail to My Friend , Home Page