Count lines in file..fast
From: Arthur Prince (arthurp_at_TOTALISE.CO.UK)
Date: 06/19/03
- Previous message: Jeff Barratt: "device drivers for graphics adapter"
- Next in thread: Jean-Marc Monnez: "Re: Count lines in file..fast"
- Reply: Jean-Marc Monnez: "Re: Count lines in file..fast"
- Maybe reply: Gosselin, Mark: "Re: Count lines in file..fast"
- Reply: Frank Chiavoni: "Re: Count lines in file..fast"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 19 Jun 2003 11:32:57 +0100 To: aix-l@Princeton.EDU
I need a fast method of counting lines in a file that contain a specific
string.
I am currently using grep mystring myfile | wc -l
but this is slow on large files.
Anyone got a faster method?
AP
- Previous message: Jeff Barratt: "device drivers for graphics adapter"
- Next in thread: Jean-Marc Monnez: "Re: Count lines in file..fast"
- Reply: Jean-Marc Monnez: "Re: Count lines in file..fast"
- Maybe reply: Gosselin, Mark: "Re: Count lines in file..fast"
- Reply: Frank Chiavoni: "Re: Count lines in file..fast"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|