Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 1996 12:44:51 -0700 (PDT)
From:      Wolfram Schneider <wosch>
To:        CVS-committers, cvs-all, cvs-gnu
Subject:   cvs commit:  src/gnu/usr.bin/grep grep.c
Message-ID:  <199609271944.MAA07284@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

wosch       96/09/27 12:44:50

  Modified:    gnu/usr.bin/grep  grep.c
  Log:
  grep -q pattern file
  
  search 'pattern' in whole file 'file', from top to bottom.  This is
  not necessary; if grep found 'pattern' it can stop further searching
  in file 'file'.
  
  Example:
  
  $ time ./grep-old -q Adam /usr/share/dict/*
          1.93 real         1.05 user         0.85 sys
  $ time ./grep-new -q Adam /usr/share/dict/*
          0.14 real         0.06 user         0.06 sys
  
  Revision  Changes    Path
  1.7       +5 -1      src/gnu/usr.bin/grep/grep.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609271944.MAA07284>