Re: Count lines in a textfile
Re: Count lines in a textfile
- Subject: Re: Count lines in a textfile
- From: Gnarlodious <email@hidden>
- Date: Thu, 16 Sep 2004 20:05:54 -0600
Title: Re: Count lines in a textfile
Entity Doug McNutt spoke thus:
> 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.
This command, in my shell script, translates to UNIX newlines in case the fike is im a Mac format:
tr '\\r' '\\n'
The file is normally written as Mac lineendings from Applescript I believe,
-- Gnarlie
_______________________________________________
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