I want to rm all the files that I get when I run
find search-3S-beta |grep "\.log\."
What would be the command?
Find can do the deletion for you using the -delete option. Combining the rest of your command into a single find line, this will become:
find search-3S-beta -name '*.log.*' -delete
find search-3S-beta -name '*.log.*' -print0 |xargs -0 rm
find ... -delete
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2 years ago