From owner-freebsd-doc Mon Dec 2 22:20: 5 2002 Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3956A37B404 for ; Mon, 2 Dec 2002 22:20:03 -0800 (PST) Received: from mail.ruhr.de (in-ruhr4.ruhr.de [212.23.134.2]) by mx1.FreeBSD.org (Postfix) with SMTP id 22AB143E88 for ; Mon, 2 Dec 2002 22:20:02 -0800 (PST) (envelope-from ue@nathan.ruhr.de) Received: (qmail 1389 invoked by uid 10); 3 Dec 2002 06:20:01 -0000 Received: from nathan.internal (localhost [127.0.0.1]) by nathan.internal (8.12.6/8.12.6) with ESMTP id gB36HNGM054502; Tue, 3 Dec 2002 07:17:23 +0100 (CET) (envelope-from ue@nathan.internal) Received: (from ue@localhost) by nathan.internal (8.12.6/8.12.6/Submit) id gB36HMqC054501; Tue, 3 Dec 2002 07:17:22 +0100 (CET) Date: Tue, 3 Dec 2002 07:17:22 +0100 From: Udo Erdelhoff To: Andre Guibert de Bruet Cc: doc@FreeBSD.ORG Subject: Re: grep(1) manpage Message-ID: <20021203061722.GM214@nathan.ruhr.de> Mail-Followup-To: Andre Guibert de Bruet , doc@FreeBSD.ORG References: <20021202220938.D36900-100000@alpha.siliconlandmark.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021202220938.D36900-100000@alpha.siliconlandmark.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Mon, Dec 02, 2002 at 10:10:17PM -0500, Andre Guibert de Bruet wrote: > Hello, > > The grep(1) manpage (-STABLE, might apply to -CURRENT) reads as follows: > > NAME > grep, egrep, fgrep, zgrep - print lines matching a pattern > > <...snip...> > > In addition, two variant programs egrep and fgrep are > available. egrep is the same as grep -E. fgrep is the > same as grep -F. zgrep is the same as grep -Z. > > The grep command has four flavors, three of which are variants. Doing an > 'ls -loi' on each of the binaries will reveal that they share the same > inode: > > 10874952 -r-xr-xr-x 6 root wheel - 53600 Dec 2 18:17 /usr/bin/grep > 10874952 -r-xr-xr-x 6 root wheel - 53600 Dec 2 18:17 /usr/bin/egrep > 10874952 -r-xr-xr-x 6 root wheel - 53600 Dec 2 18:17 /usr/bin/fgrep > 10874952 -r-xr-xr-x 6 root wheel - 53600 Dec 2 18:17 /usr/bin/zgrep ^ Actually, it's six flavours, five of which are variants: /usr/bin$ ls -li grep 16507 -r-xr-xr-x 6 root wheel 51872 4 Okt 08:52 grep /usr/bin$ ls -li | grep 16507 16507 -r-xr-xr-x 6 root wheel 51872 4 Okt 08:52 egrep 16507 -r-xr-xr-x 6 root wheel 51872 4 Okt 08:52 fgrep 16507 -r-xr-xr-x 6 root wheel 51872 4 Okt 08:52 grep 16507 -r-xr-xr-x 6 root wheel 51872 4 Okt 08:52 zegrep 16507 -r-xr-xr-x 6 root wheel 51872 4 Okt 08:52 zfgrep 16507 -r-xr-xr-x 6 root wheel 51872 4 Okt 08:52 zgrep Still looking for a good way of putting this information into the manual page. And to account for the fact that zgrep.1 is actually installed as part of the gzip distriution, not as a part of the grep distribution. /s/Udo -- He who findeth sensuous pleasures in the bodies of lush, hot, pink damsels is not righteous, but he can have a lot more fun. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message