Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Dec 2002 07:17:22 +0100
From:      Udo Erdelhoff <ue@nathan.ruhr.de>
To:        Andre Guibert de Bruet <andy@siliconlandmark.com>
Cc:        doc@FreeBSD.ORG
Subject:   Re: grep(1) manpage
Message-ID:  <20021203061722.GM214@nathan.ruhr.de>
In-Reply-To: <20021202220938.D36900-100000@alpha.siliconlandmark.com>
References:  <20021202220938.D36900-100000@alpha.siliconlandmark.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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