find /path_to_start_from -name *.jpe?g 2>/dev/null > output.txt