我嘗試執行一些類似這樣的不能運行簡單的bash腳本
#!/bin/bash
${postid=41930}
while ${postid} < 42000;
do
`node title.js ${postid}`
${postid} = ${postid} +1;
done
我有這樣的錯誤:
: command not found30
run.sh: line 8: syntax error: unexpected end of file
$ echo $SHELL
/bin/bash
$
從人SH
while *list*;do *list*;done
sh version 3.2
非常感謝您的解決方案。我必須使用vi:set ff = unix。知道所有的工作! –