[PLUG] Counting Paragraphs in a Text File
Rich Shepard
rshepard at appl-ecosys.com
Wed Sep 7 13:16:14 UTC 2005
On Tue, 6 Sep 2005, Travis Spencer wrote:
> If a paragraph is *exactly* two new line characters in a row, then a less
> accurate way that is a little easier on the wrists would be to just use
> grep like this: `grep -c ^$'. For instance:
Thanks, Travis. I don't understand the difference in the resulting counts,
but my immediate need is for a correct number. They're lists of potential
clients that I need to call as soon as I return from a business trip, and
eventually will be imported into my contact management system.
Thanks,
Rich
--
Dr. Richard B. Shepard, President | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the PLUG
mailing list