* Manuel Mussini ([log in to unmask]) [20061129 20:00]:

> Does anybody know why this sequence does not work (under bash on
> SLF3.0.5)?

> ext="log"
> files=`find . -name '*.${ext}' -print`
> echo $files

The shell does not expand variables in single quotes.  Try this:

	files=`find . -name "*.${ext}" -print`

Please be aware that you will run into trouble should you have too
many *.log files (and/or long paths) -- the shells don't cope very
well with extremely long variables.

HTH,
Peter

-- 
    .+'''+.         .+'''+.         .+'''+.         .+'''+.         .+''
 Kelemen Péter     /       \       /       \     [log in to unmask]
.+'         `+...+'         `+...+'         `+...+'         `+...+'