Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

remove all files matching a pattern in subdirectories

find . -type f -name '<pattern>' -delete

# OR 

find . -type f -name '<pattern>' -exec rm {} +
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #remove #files #matching #pattern #subdirectories
ADD COMMENT
Topic
Name
6+8 =