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

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 "how to remove all files in a directory matching a regex pattern shell"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language