Mail Archives: djgpp/1999/02/08/20:10:15
Paul Derbyshire wrote:
>
> At 02:02 AM 2/7/99 -0500, you wrote:
> >You should try "grep" next time.
>
> I've never been ableto get gnu grep to work. :P
> The documentation is obfuscated ... reads like a reference manual. It's
> obviously geared to people who are already familiar with grep, not for grep
> newbies.
> I tried what I guessed from the documentation would find all files with a
> certain string in a directory (which I knew had some files containing the
> string) and it came up empty...
Have you possibly got an old version of grep? More recent ones come
with much better documentation, IIRC.
Anyway, the general format is
grep "regex" file [...]
or, simpler still,
fgrep "string" file [...]
where regex is a regexp (see regcomp, perhaps), and file can include any
of the usual DJGPP glob characters.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -