I'm wondering is there is a way to run a precise action :
deleting all of a certain kind of files starting from a folder and including all the subfolders.
For instance, with many partitions inherited from MS Windows, I have "thumbs.db" present. I'd like to just let the system delete them for me, if you see my Idea.
Or another example, I have another place where I accidentally downloaded not only texts but also lots of annoying little pictures, i'd like to be able to delete anything not .txt in the folder and its subdirs.
In other words, I'd like a way to do something like "rm thumbs.db -case-insensitive -in-every-dir-and-subdir", or "rm anything-not-*.txt -in-every-dir-and-subdir"...
Would you know if that's possible ?
I don't know how to do it, but considering the power of linux scripting, which is still new to me, hope is allowed