Manuel Mussini said...
|
|Does anybody know why this sequence does not work (under bash on SLF3.0.5)?
|
|ext="log"
|files=`find . -name '*.${ext}' -print`
|echo $files
|
|I think that the syntax is correct! Isn't it?
No.
The single quotes around the file name keeps
${ext} from expanding. Usesingle quotes:
files=`find . -name "*.${ext}" -print`
-Miles