• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Count lines in a textfile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Count lines in a textfile (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Count lines in a textfile
  • Next by Date: Re: Count lines in a textfile
  • Previous by thread: Re: Count lines in a textfile
  • Next by thread: Re: Count lines in a textfile
  • Index(es):
    • Date
    • Thread