Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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

ls | grep -P "^A.*[0-9]{2}$" | xargs -d"
" rm
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #remove #files #directory #matching #regex #pattern #shell
ADD COMMENT
Topic
Name
7+4 =