Using find command to search for all pictures, or all music, etc
Hello all. Trying to find a way to have the find command perform a search using multiple file extensions such as "find all pics" i.e. .jpg, .png, .gif, .raw etc. I would have thought something like the following would have worked, but apparently I'm doing something wrong:
sudo find / -type f -iname "*.jpg" "*.png" "*.gif" -printf
I'm guessing find simply doesn't support more than one "-name/-iname" at a time?
Or perhaps I'm going about this the wrong way? I realize most times there's several different ways to skin a cat when a task is requested in linux/unix.
Thanks for taking the time to help,
Loadedmind
|