[PLUG] Paragraph Counting Script

Joe Pruett joey at clean.q7.com
Mon Jul 13 22:52:25 UTC 2009


>> and i just realized that since you don't really care about the data, a
>> much quicker answer is:
>>
>> grep -c '^$'
>
>   Now that's slick! Never would have occurred to me.
>
> Much grasses for the lessons,

btw, that flavor may have a fencepost error if your data doesn't guarantee 
a trailing blank line on the file.



More information about the PLUG mailing list