in localpath i have files with names
myfile1_20090821.dat
myfile2_20090831.dat
myfile3_20090811.dat
myfile4_20090822.dat
myfile5_20090825.dat
type="OP"
module="abc"
if [ $type == 'OP' ]; then
case $module in
abc) x=1
while [ $x -le 5 ]
do
INPUT_FILE[$x]=`ls localpath/myfile$x*.dat`
x=$(( $x + 1 ))
done;;
*) echo "not.......";;
esac
fi
its giving error :ls localpath/myfile$1*.dat not found
plz help me