I can get all
jpg images by using:
find . -name "*.jpg"
But how can I add
png files to the results as well?
You can combine criteria with
On Linux, you can use
On FreeBSD, NetBSD and OSX, you can use
To make it clear, the only optio that works on Linux, Unix and OS X flavour is:
That's because the OS X version is a little bit different, but that's important to write things that go well on most platforms.