I want to
rm all the files that I get when I run
find search-3S-beta |grep "\.log\."
What would be the command?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
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