13 for each in $ HOSTS; 14 do 15 if [! - d / usr/ restore/ $ each ] ; 16 then mkdir / usr/ restore/ $ each 17 fi 18 cd / usr/ restore/ $ each 19 sftp - b - server- 1 < < EOF. It looks to me like the ` ( backtick) before echo is not matched, as the error suggests. It looks like the ' ( apostrophe) at the end of the second line should be a backtick instead. Some people think it' s better style to use $ (. I have written a shell script to reconnect my router. When I run it on my PC with Cygwin, it works fine, but now I want to run it on my smartphone in a SL4A shell, and I get an error: reconnect. sh[ 4] syntax error: ' { ' unmatched. This is the script I' m. 諦めかけた時に出会ったのが「 Shell script arrays Syntax error: “ ( ” unexpected | Sany' s Linux and Open Source Blog」 で、 次のように解決するように示されていた:.
ls - l / bin/ sh lrwxrwxrwx 1 root root 4 Apr 6 10: 25 / bin/ sh - > bash. spx_ repair_ sfgi_ 2. sh[ 37] : syntax error at line 55 : ` < < ' unmatched. # loop through tblname. txt for tblname in ` cat / orahome/ app/ oracle/ home/ rowcount. txt` do # set shareplex environment ` / orahome/ app/ SharePlex/ 10g/ prod/. I am using following version version sh ( AT& T Research) 93u. I did not received any syntax error for your above code, though there a problem with your if statement condition instead of if [ [ $ 0 = " - ksh" ] ]. The here string delimiter must not be indented, your END should be at the beginning of the line: $ cat < < EOT > foo > bar > EOT foo bar. If you want the trailing delimiter to be indented you can use the following syntax, but this. The heredoc terminator must be the only text on that line, no other whitespace allowed ( * ) column_ name= $ ( sqlplus - s $ BASE_ DB_ CONN<