From: Frank Chiavoni (Frank.Chiavoni@OIT.STATE.NJ.US)
Date: Thu Jun 19 2003 - 08:56:49 EDT
-----Original Message-----
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
---------------------
sed -n '$=' myfile
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:55 EDT