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 reply to Heresy = Re: perl
by arturo
in thread perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |