You could use: ls *.png | while read file; do # convert $file done Or you can override $IFS and continue to do it how you were before: OIFS=$IFS; IFS=$'\n' for file in $(ls *.png); do # convert $file done IFS=$OIFS Cheers, -- Nathan de Vries
Attachment:
smime.p7s
Description: S/MIME cryptographic signature