delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/08/20:10:15

Sender: nate AT cartsys DOT com
Message-ID: <36BF8BC3.5D414848@cartsys.com>
Date: Mon, 08 Feb 1999 17:13:39 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.0.36 i586)
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: ptrdiff_t
References: <3 DOT 0 DOT 6 DOT 32 DOT 19990207213333 DOT 0081a3f0 AT pop DOT netaddress DOT com>
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019