RE: delete file based on content
Please ignore former post. It was an ID10T error on my part.
-----Original Message-----
From: Tom [mailto:40101.nospam@comcast.net]
Sent: Monday, January 05, 2004 5:41 PM
To: debian-user@lists.debian.org
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 debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
Reply to: