Count lines in file..fast

From: Arthur Prince (arthurp_at_TOTALISE.CO.UK)
Date: 06/19/03

  • Next message: Jean-Marc Monnez: "Re: Count lines in file..fast"
    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


  • Next message: Jean-Marc Monnez: "Re: Count lines in file..fast"

    Relevant Pages

    • Re: Count lines in file..fast
      ... I need a fast method of counting lines in a file that contain a ... string. ... I am currently using grep mystring myfile | wc -l ...
      (AIX-L)
    • Re: Count lines in file..fast
      ... On Thu, 19 Jun 2003, Frank Chiavoni wrote: ... > I need a fast method of counting lines in a file that contain a ... > string. ...
      (AIX-L)