By Alfred Tuinman
- One minute read - 44 wordsEdited on March 21, 2023
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/ ;