mkdir.sh
Execute sh mkdir.sh XXX (argument)
Error: mkdirs.sh: 9: Syntax error: Word unexpected (“do”)
Syntax error: word unexpected (“)”)
Similar problems, the case see details
http://ubuntuforums.org/archive/index.php/t-1130892.html
http://forum.ubuntu.org.cn/viewtopic.php?f=21& t=416571
Summarize several questions:
1. dos2unix xxx
2. Sh mkdir.sh failed to run mkdir.sh directly
3. Modify the #!/bin/sh to #! /bin/bash, then execute bash mkdir.sh XXX
4. See if there are any errors in the syntax, if line wrapping is required; Etc.
5. For permission issues, try to implement a copy of cp
Ls-l look at the owner
Read More:
- Syntax error: word unexpected (expecting “)”)
- [!] Invalid `Podfile` file: syntax error, unexpected end-of-input, expecting keyword_end.
- Solve the problem of syntax error: unexpected end of file or syntax error near unexpected token ` fi ‘error
- [development experience] solution to unexpected syntax error: unexpected identifier in JSON parsing
- “Unexpected syntax error: unexpected identifier”.
- Unexpected syntax error: unexpected token<
- error Parsing error: Unexpected reserved word ‘await‘.
- The build report plug-in reported an error in importing unit script (BRT_ Util.cs :error CS1525: Unexpected symbol `;’, expecting `)’, or `,’)
- Solving word experienced an error trying to open the file in word
- Shell script syntax error near unexpected token ‘$’Do
- Syntax error near unexpected token `newline’script cannot be executed
- Word failed to convert PDF, export failed due to an unexpected error
- Syntax error: unexpected end of file problem [two solutions]
- Compiling less syntax error: unknown word error
- Error: unexpected syntax error: unexpected token<
- Syntax error: unexpected EOF while parsing
- syntax error near unexpected token `else’
- syntax error near unexpected token `then’ problem solution
- Solve the problem of shell script “syntax error near unexpected token `fi’”.
- [shell] sh executes the script and reports an error syntax error: “(” unexpected “)