Answers for "remove all files in a directory linux that match pattern"

0

remove all files in a directory linux that match pattern

find . -name '*.orig' #-delete
Posted by: Guest on July-03-2021
0

how to remove all files in a directory matching a regex pattern shell

ls | grep -P "^A.*[0-9]{2}$" | xargs -d"\n" rm
Posted by: Guest on November-24-2020

Code answers related to "remove all files in a directory linux that match pattern"

Browse Popular Code Answers by Language