I'm attempting to clean out a bunch of temporary files from a folder tree, but don't want to delete files that match some criteria, specifically executable files, .tpl files, and not the subfolder 'data'.
I see the question here
is almost what I'm looking for, but they have a regex they are trying to match, and I have a regex that I don't want matches. I can do this to find all of the files I don't to delete:
find . -executable -o -regex '.*\.tpl'
Is there a way to invert the matches, like -v does with regex?