• 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: Martin Orpen <email@hidden>
  • Date: Fri, 17 Sep 2004 13:27:27 +0100

on 17/9/04 2:07 am, Christopher Nebel at email@hidden wrote:

> "sed -n '$='" is equivalent to "wc -l".

I reckon that wc is faster.

I just checked a server log with 1464675 lines and wc takes 9 seconds and
sed 14 seconds.

Regards

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com


 _______________________________________________
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: Christopher Nebel <email@hidden>)

  • Prev by Date: Identifying "LN" type aliases
  • Next by Date: Adobe Illustrator Scripting
  • Previous by thread: Re: Count lines in a textfile
  • Next by thread: Re: Count lines in a textfile
  • Index(es):
    • Date
    • Thread