Replacing GNU grep revisited
Anthony Schneider
anthony at x-anthony.com
Mon Jun 23 21:52:23 PDT 2003
> Interesting. I found that GNU's grep actually finds a match for "grep
> -ail freebsd /usr/ports/distfiles/*":
>
> /usr/ports/distfiles/ezm3
>
> ezm3 is a directory with a filename that contains FreeBSD in it.
the * will expand /usr/ports/distfiles/* into full path names to each
file in /usr/ports/distfiles. since this is expanded by your shell,
grep will take those directory names as arguments and search directories
as files as we know it to..
-Anthony.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20030624/16d82801/attachment.bin
More information about the freebsd-hackers
mailing list