Please tell me how to filter by regular expression using find command in linux?
仅有的幸福2017-06-17 09:16:46
0
1
900
I want to find files in the current directory that match the format: integer_integer.zip, find and delete them. For example, a file name like this: 234_23444.zip
You can use the option
-regex
to use regular expressions:If you need to delete the found files, use
xargs
(please make sure before deleting):If you not only want to delete but also get the number of deletions, you can do this: