in reply to perl
Or, on *NIX systems,
shell prompt>grep -c '^[:blank:]*$' foo.bar
-c tells grep to merely count lines which match the pattern (0 or more blanks between the beginning and end of the line)
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
|
---|
In Section
Seekers of Perl Wisdom