在rsync备份的时候,运用--exclude命令不备份某些目录的时候,如果目录名有()的话,那么shell脚本就会报“syntax error near unexpected token `(”。所以要尽量避免取有括号的目录名
相关文章
- linux命令中带括号出现错误:syntax error near unexpected token...
- 同一脚本sh 脚本名 报Syntax error: "(" unexpected而./脚本名不报错,求解!!
- 写shell,运行出错:syntax error near unexpected token `$’do\r”
- 解决执行脚本报syntax error: unexpected end of file或syntax error near unexpected token `fi'错误的问题
- 脚本报错:syntax error near unexpected token
- 解决shell脚本“syntax error near unexpected token `fi'”的问题。
- syntax error near unexpected token '$'\r''
- syntax error near unexpected token `then'问题的解决
- 解决Ubuntu下"syntax error near unexpected token"报错问题
- 执行shell脚本报错:syntax error near unexpected token `或syntax error: unexpected end of file