From owner-cvs-gnu Fri Sep 27 12:45:14 1996 Return-Path: owner-cvs-gnu Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA07497 for cvs-gnu-outgoing; Fri, 27 Sep 1996 12:45:14 -0700 (PDT) Received: (from wosch@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA07284; Fri, 27 Sep 1996 12:44:51 -0700 (PDT) Date: Fri, 27 Sep 1996 12:44:51 -0700 (PDT) From: Wolfram Schneider Message-Id: <199609271944.MAA07284@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-gnu Subject: cvs commit: src/gnu/usr.bin/grep grep.c Sender: owner-cvs-gnu@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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