请大牛帮忙,shell脚本的问题
$vi test.sh
#!/bin/bash
table=xx_20$(date +%y%m)
echo $table
value=sqlplus ttt/ttt@ts <select count(*) from $table;
exit
EOF
echo $value
fi
然后
chmod 777 test.sh
./test.sh
出现:
xx_201111
./test.sh: line 4: select: A file or directory in the path name does not exist.
请各位帮忙看看,谢谢!!!!!