Please ignore former post.  It was an ID10T error on my part.


-----Original Message-----
From: Tom [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 05, 2004 5:41 PM
To: [EMAIL PROTECTED]
Subject: Re: delete file based on content

On Mon, Jan 05, 2004 at 05:35:26PM -0600, Michael Martinell wrote:
[snip]
> 
> I tried the following: grep -li "Processing completed correctly" * 
> 
> This gave me the list of logs that were complete.  How can I send the
> results of this to the rm command.  The redirection that I tried did not
> seem to work.
> 

#rm `grep -li "Processing completed correctly" *`


This worked nicely at the command line, however when I put in into a script
I received the error rm :too few arguments

Any other thoughts?

-- 
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]

Reply via email to