I need to find all image files from directory (gif, png, jpg, jpeg).
find /path/to/ -name \"*.jpg\" > log
How to modify this string to f
In supplement to @Dennis Williamson 's response above, if you want the same regex to be case-insensitive to the file extensions, use -iregex :
find /path/to -iregex ".*\.\(jpg\|gif\|png\|jpeg\)" > log