It’s gona be compilacted…
I’m writing a bash script wich resizes all the images in a given directory. I need to select all the files with jpg, jpeg, JPG, JPEG etc. extensions, but i don’t know how.
source="$1/*.jpg"
is working for the jpg extensions, but how can I add the others?
( $1 is a directory given as argument )
I was thinking of
source="$1/*.{jpg,jpeg}"
but doesn’t work
Can somebody help with this please?