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
의 제공 오류 :유닉스에서 case 문에 와일드 카드를 사용하는 데 문제가 있습니까?
#!/usr/bin/bash 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
는 오류 메시지를 제공하지 : LS의 localpath/myfile을 $ 1 *는
이 PLZ 나에게 프로그램의