Can anybody tell me what I am doing wrong?
I am trying to delete files based upon content. As an example I have files called log1, log2, log3
Log 1 contains the words “Processing completed correctly” and can be deleted.
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. |
- Re: delete file based on content Michael Martinell
- Re: delete file based on content Nano Nano
- RE: delete file based on content Michael Martinell
- RE: delete file based on content Michael Martinell
- RE: delete file based on content Paul Morgan
- Re: delete file based on content Jan Minar
- Re: delete file based on conte... Nano Nano
- Re: delete file based on c... Nano Nano
- Re: delete file based on c... Micha Feigin
- Re: delete file based on conte... Paul Morgan
- Re: delete file based on content Laurence J. Lane