这个惊叹号不能少,否则引发“syntax error `end of file' unexpected”的错误
来源:互联网 发布:照片去除马赛克软件 编辑:程序博客网 时间:2024/04/28 22:13
#这个Shell解析某个文件sch8527.txt的所有纪录,
#并且将其路径全部去掉提取文件名,最终通过FTP上传到远端
#sch8527.txt文件中存放的是grep过的结果,例如grep . -name 8527 > 8527.txt
tablist=`cat sch8527.txt`
for tab in $tablist
do
tab1=`basename $tab`
#去掉路径
echo $tab
echo $tab1
ftp -niv 84.0.176.142 << !
user rely rely
cd 8527
put $tab $tab1
bye
! #这个惊叹号不能少,否则引发“syntax error `end of file' unexpected”的错误
done
- 这个惊叹号不能少,否则引发“syntax error `end of file' unexpected”的错误
- SHELL syntax error:unexpected end of file 提示错误
- Shelll 错误 syntax error: unexpected end of file
- Shelll 错误 syntax error: unexpected end of file
- 解决shell错误:syntax error: unexpected end of file
- liunx下syntax error: unexpected end of file错误提示
- SHELL syntax error:unexpected end of file 提示错误
- shell错误一例 syntax error: unexpected end of file
- SHELL syntax error:unexpected end of file 提示错误
- SHELL syntax error:unexpected end of file 提示错误
- 解决执行脚本报syntax error: unexpected end of file或syntax error near unexpected token `fi'错误的问题
- syntax error: unexpected end of file
- syntax error: unexpected end of file
- shell:syntax error:unexpected end of file
- syntax error: unexpected end of file解决方法
- syntax error:unexpected end of file
- syntax error: unexpected end of file
- syntax error, unexpected end of file
- Java安全有效的实现两星期内自动登陆功能
- vista下装xp双系统
- PKU3078 Q
- 离开
- ch01: Linxu系统了解和hello world编写
- 这个惊叹号不能少,否则引发“syntax error `end of file' unexpected”的错误
- 今天郁闷的一天
- 三框架组合用tomcat配置的连接池
- Heritrix-1.12.1在Eclipse中的配置
- 很冷,很安静
- Windows Server 2008 Rtm完全硬盘安装
- 编译PWlib时搜索路径的配置
- 不可不看的人生十二个经典领悟
- Div+css菜单:一张图片实现翻转效果!