Combining it with other parameters can make it even stronger:
find . -type f -iname '*debian*' ! -iname '*.png' Finds all files with the text debian anywhere in the name and where the name does not end in .png. Also matches DeBiAn and .PNG which is sometimes nice.
Combining it with other parameters can make it even stronger:
ReplyDeletefind . -type f -iname '*debian*' ! -iname '*.png'
Finds all files with the text debian anywhere in the name and where the name does not end in .png.
Also matches DeBiAn and .PNG which is sometimes nice.
I find -not easier to read and use. Like
ReplyDelete$ find . -type f -not -name "*.mp3"
It's funny you should mention that! I used find in a way I hadn't before today as well!
ReplyDeletefind -executable -delete
@anti-dotu: Apparently -not is non-POSIX-compliant, which '!' is.