- 论坛徽章:
- 0
|
#! /bin/bash
while read TABNAME
do
TMPFILE=/home/vbsdep/upperc/ALS6_XD/${TABNAME}.tmp
cdate=$(date +%Y%m%d)
file=$TMPFILE
sed -f scr.sed $file | awk 'BEGIN{ FS = "\""; OFS = ""}{for(i=1;i<=NF;i++) if ( i%2) gsub(/,/,"|",$i); print}' > $cdate$file && to
uch /home/vbsdep/upperc/ALS6_XD/$cdate$file.OK
done<scroollist.sh
这个SHELL为什么执行以后报错:
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/IND_INFO.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/IND_INFO.tmp.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/ENT_INFO.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/ENT_INFO.tmp.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/CUSTOMER_INFO.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/CUSTOMER_INFO.tmp.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/CUSTOMER_RELATIVE.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/CUSTOMER_RELATIVE.tmp.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/BUSINESS_CONTRACT.tmp.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/BUSINESS_CONTRACT.tmp: A file or directory in the path name does not exist.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/BUSINESS_PUTOUT.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/BUSINESS_PUTOUT.tmp.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/BUSINESS_DUEBILL.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/BUSINESS_DUEBILL.tmp.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/BUSINESS_HISTORY.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/BUSINESS_HISTORY.tmp.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/BUSINESS_EXTENSION.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/BUSINESS_EXTENSION.tmp.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/BUSINESS_WASTEBOOK.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/BUSINESS_WASTEBOOK.tmp.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/CLASSIFY_RECORD.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/CLASSIFY_RECORD.tmp.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/LOANBACKSTATUS.tmp.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/LOANBACKSTATUS.tmp: A file or directory in the path name does not exist.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/BUSINESS_TYPE.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/BUSINESS_TYPE.tmp.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/PRODUCT_DEF.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/PRODUCT_DEF.tmp.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/CL_TYPE.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/CL_TYPE.tmp.
./test1.sh: line 8: 20080811/home/vbsdep/upperc/ALS6_XD/CL_INFO.tmp: A file or directory in the path name does not exist.
sed: 0602-419 Cannot find or open file /home/vbsdep/upperc/ALS6_XD/CL_INFO.tmp.
rm: /home/vbsdep/upperc/ALS6_XD/CL_INFO.tmp: A file or directory in the path name does not exist.
?Invalid command
Not connected.
Not connected.
Interactive mode off.
Not connected.
帮忙看看,谢谢 !!! |
|