Re: Using Find with Grep

2004-05-07 Thread Rick Weinbender
thanks man! :-)
It works great, and doesn't stop
on the first match.
-Rick

*
[EMAIL PROTECTED] wrote:

> Hello:
>
> Try  "man grep" at any Unix command line.  You might find something
> like...
>
>-L, --files-without-match
>   Suppress normal output; instead print the  name  of
>   each input file from which no output would normally
>   have been printed.  The scanning will stop  on  the
>   first match.
>
> If you need to find all such files, you can easily write a loop in
> a shell script.
>
> Mark
> > How can I make the following expression
> > display only occurrences that do NOT contain the
> > searchstring.  Is this possible?
> >
> > find /home -name *.txt -exec grep searchstring {} \;
> >
> > I want to search for the absense of a particular commandline
> > in a user config file.
> >
> > TIA,
> >
> > -Rick
> >
> >
> > --
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> >
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Using Find with Grep

2004-05-07 Thread kd4d
Hello:

Try  "man grep" at any Unix command line.  You might find something
like...

   -L, --files-without-match
  Suppress normal output; instead print the  name  of
  each input file from which no output would normally
  have been printed.  The scanning will stop  on  the
  first match.

If you need to find all such files, you can easily write a loop in
a shell script.

Mark
> How can I make the following expression
> display only occurrences that do NOT contain the
> searchstring.  Is this possible?
> 
> find /home -name *.txt -exec grep searchstring {} \;
> 
> I want to search for the absense of a particular commandline
> in a user config file.
> 
> TIA,
> 
> -Rick
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Using Find with Grep

2004-05-07 Thread Colin Watson
On Fri, May 07, 2004 at 09:21:16AM -0500, Rick Weinbender wrote:
> How can I make the following expression display only occurrences that
> do NOT contain the searchstring.  Is this possible?
> 
> find /home -name *.txt -exec grep searchstring {} \;
> 
> I want to search for the absense of a particular commandline in a user
> config file.

   -L, --files-without-match
  Suppress normal output; instead print the  name  of
  each input file from which no output would normally
  have been printed.  The scanning will stop  on  the
  first match.

-- 
Colin Watson  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Using Find with Grep

2004-05-07 Thread Rick Weinbender
How can I make the following expression
display only occurrences that do NOT contain the
searchstring.  Is this possible?

find /home -name *.txt -exec grep searchstring {} \;

I want to search for the absense of a particular commandline
in a user config file.

TIA,

-Rick


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]