Am 08.08.2011 14:17, schrieb mhenn:
> Am 08.08.2011 11:33, schrieb Francky Leyn:
>>[...]
> 
> echo "$INPUT_FILES" #obviously wrong
> #instead maybe
> INPUT_FILES="$(ls *.$EXTENSION)"
> 
>> [...]

That actually wasn't such a good advice:
<http://mywiki.wooledge.org/ParsingLs>

Better use find or or a for loop like this:

for file in *.$EXTENSION; do
        ...
        #but attention here: if no such a file exists,
        # $file is "*.jpg" (with a literal asterisk)

        #maybe break after the first found file?
done

Reply via email to