By Alfred Tuinman
- One minute read - 44 wordsfind . -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/ ;