identify image is png or jpg code example Example: find jpg or png find file/path -type f -name '*.PNG' -o -name '*.JPG'