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 find not only .jpg files?
find /path/to -regex ".*.(jpg|gif|png|jpeg)" > log
2.1m questions
2.1m answers
60 comments
57.0k users