Delete Files

Posts tagged with

Find and delete files

find . -type f -iname “file(s)-to-delete” -exec rm -f {} ; The -iname makes it case insensitive, otherwise use -name. Of course you can also move them to say /tmp rather than deleting find . -type f -iname “file(s)-to-delete” -exec mv {} /tmp/ ;

Read more →