Ubuntu under the execution of the pin this newspaper error [: 10:unexpected operator

Source: Internet
Author: User

Ubuntu under the execution of the pin this newspaper error is as follows:
[Email protected]:/var/tmp# sh *sh
Guhua_route.sh:8: [: 10:unexpected operator
Guhua_route.sh:11: [: 10:unexpected operator
GUHUA_ROUTE.SH:14: [: 10:unexpected operator

The script does not work under CentOS, and it does not work under Ubuntu.
Reason:
Because the Ubuntu default SH is connected to dash, and because the dash is incompatible with bash, it goes wrong.
You can replace SH with the bash file name when executing. SH to execute
Reference Link: http://blog.csdn.net/u010665691/article/details/46118601

Ubuntu under the execution of the pin this newspaper error [: 10:unexpected operator

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.