Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

iterate over dir and remove file bash

find /tmp -name '*.pdf' -or -name '*.doc' | xargs rm
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #iterate #dir #remove #file #bash
ADD COMMENT
Topic
Name
9+2 =