- 论坛徽章:
- 0
|
原帖由 blackold 于 2008-9-9 16:35 发表 ![]()
for i in "`ls $DIR1`"
改成为
for i in `\ls $DIR1`
晕了。。。还是不行,报同样的错。。。。
$ vi yhsj_format.sh
"yhsj_format.sh" 16 lines, 426 characters
DIR1="/lbill/lbas/ric97/yhsj_format/init"
DIR2="/lbill/lbas/ric97/yhsj_format/tmp"
cd "$DIR1"
IFS=$'\n'
for i in `\ls $DIR1`
do
mv "$i" /lbill/lbas/ric97/yhsj_format/tmp/"$i"
cd "$DIR2"
uncompress "$i"
done;
#cd $DIR2
#for j in `ls $DIR2`
# do
# awk -f /lbill/lbas/ric97/yhsj_format/sh/yhsj_format.awk $j >/lbill/lbas/ric97/yhsj_format/format/$j
# mv $j /lbill/lbas/ric97/yhsj_format/bak/$j
#done
---------------------------------------------------------------------------------
$ sh yhsj_format.sh
/lbill/lbas/ric97/yhsj_format/i not found
it not found |
|