Re: Count lines in a textfile
Re: Count lines in a textfile
- Subject: Re: Count lines in a textfile
- From: Doug McNutt <email@hidden>
- Date: Thu, 16 Sep 2004 19:28:45 -0600
At 18:07 -0700 9/16/04, Christopher Nebel wrote:
>"sed -n '$='" is equivalent to "wc -l".
Methinks wc will study only UNIX line ends. That may, or may not, be what is desired.
<ftp://ftp.macnauchtan.com/Software/LineEnds/FixEndsFolder.sit> 52 kB
<ftp://ftp.macnauchtan.com/Software/LineEnds/ReadMe_fixends.txt> 4 kB
Are a trio of Applescripts - well not really but they use an AppleScript interface - that will change between UNIX, Apple Classic, and DOS line ends. As a byproduct they count occurrences of each.
Source is included.
--
--> If the US citizens between 18 and 21 would exercise their right to vote we wouldn't have a 21 year drinking age. <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden