RE: delete file based on content
From: Tom [mailto:email@example.com]
Sent: Monday, January 05, 2004 5:41 PM
Subject: Re: delete file based on content
On Mon, Jan 05, 2004 at 05:35:26PM -0600, Michael Martinell wrote:
> 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 firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact