#!/bin/bash
# we use the $@ so that when we run the script# like this, script.bash *.jpgFILES="$@"
#start of the loopfor f in $FILESdo# to remove the extention from the file use ${f%.*}.jpgconvert $f -quality 100 jpeg/${f%.*}.jpgdone
Keywords: bash linux