Hi guys,
Here's part of my code
why the variable $parameter can not include in for loop ?
how do I put the variable $parameter into my for loop ?
Thanks guys,
Here's part of my code
Code:
...
parameter="Current_Rates"
for f in `find . -name "*.csv" -maxdepth 1`
do
dir=`echo $f | sed 's/.*\(.\{8\}\).csv$/\1/'`
if [[ $dir -lt $tdate ]];then
echo $parameter_$dir
fi
done
why the variable $parameter can not include in for loop ?
how do I put the variable $parameter into my for loop ?
Thanks guys,