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.
I am a geek who spends his free time messing around with Linux and security stuffs, programming, and anything that mixes with the two. I also enjoy playing around with mathematics (mainly physics and statistics). Word play is always an onomatopoeia.
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.