Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!lll-lcc!well!dv From: dv@well.UUCP (David W. Vezie) Newsgroups: net.unix,net.unix-wizards,net.wanted Subject: Re: Need unix command file HELP! Message-ID: <698@well.UUCP> Date: Mon, 24-Feb-86 12:42:36 EST Article-I.D.: well.698 Posted: Mon Feb 24 12:42:36 1986 Date-Received: Wed, 26-Feb-86 20:36:45 EST References: <245@aero.ARPA> <587@smeagol.UUCP> <259@hadron.UUCP> <144@wgivax.UUCP> Reply-To: dv@well.UUCP (David W. Vezie) Organization: Whole Earth Lectronic Link, Sausalito CA Lines: 14 Xref: linus net.unix:6642 net.unix-wizards:14113 net.wanted:7580 In article <144@wgivax.UUCP> mo@wgivax.UUCP writes: >WRONG! fgrep -l WILL print the file name, and WILL NOT print the string > it will look for ONLY the first occurrence in a file, speeding > things up, AND fgrep is faster than grep > Ummm... I don't know about your machine, but I just did an informal benchmark comparing {e,,f}grep for speed, and found out that of the three, egrep is fastest, followed by grep, and slowest was fgrep. (this is on 4.2BSD) --- David W. Vezie {dual|hplabs}!well!dv - Whole Earth 'Lectronics Link, Sausalito, CA (4 lines, 113 chars)