I’m working on a solaris box. How do I go about deleting all files in a folder, which have the word”Failure” in them ?
i’m trying something in the lines of the following, but it doesn’t seem to remove anything.
rm -rf | find ./*.log -exec grep 'Failure' \;
Appreciate your inputs.
If I interpret correctly you don’t require recursive searching, so something like:
should work. If not, try: