![]() |
![]() |
EnderUNIX tipsMail to My Friend , Home Page[ Shell Scripting ] "Counting blank lines - 2" - Ülkü SAYILAN - (2004-08-04 11:27:46) [3654] 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 |
|