rgrep? [was Re: [CLUE-Tech] xargs]

Jed S. Baer thag at frii.com
Mon Jan 6 14:03:46 MST 2003


On Sun, 5 Jan 2003 23:13:53 -0700
"Timothy C. Klein" <teece at silverklein.net> wrote:

> * Jed S. Baer (thag at frii.com) wrote:
> > 
> > $ file `which rgrep`
> > /usr/bin/rgrep: ELF 32-bit LSB executable, Intel 80386, version 1,
> > dynamically linked (uses shared libs), stripped
> >  
> > Hmmmm ...
> 
> Perhaps it is just a hard-link? My man page for grep says that egrep
> and fgrep are hard links for grep -E and grep -F, respectively.

Well, aside from having different inode numbers, rgrep is /usr/bin/rgrep,
and grep is /bin/grep. The ln manpage says hard links cannot cross
filesystems, and on my box, that would be the case here, if it were a hard
link (POSIX doesn't have this restriction -- hmmm, wonder how that would
work?).

I do note that at rpmfind.net, the latest RH rgrep is for v6.2. That's
pretty old, so it might be that the "one exe to grep them all" approach is
a more recent development. However, that would imply that I should have an
rgrep directory entry, whether symbolic or not, in /bin. But grep has only
1 hard link (itself).

jed
-- 
We're frogs who are getting boiled in a pot full of single-character
morphemes, and we don't notice. - Larry Wall; Perl6, Apocalypse 5



More information about the clue-tech mailing list