root@SHDH:/volume2/photo# sh photo_thumb.sh photo_thumb.sh: line 1: $'\r': command not found photo_thumb.sh: line 6: $'\r': command not found photo_thumb.sh: line 7: syntax error near unexpected token `$'{\r'' 'hoto_thumb.sh: line 7: `function thumb(){
执行后 出现如下错误提示
sh ./photo_thumb.sh
./photo_thumb.sh: line 1: $'\r': command not found
./photo_thumb.sh: line 6: $'\r': command not found
./photo_thumb.sh: line 7: syntax error near unexpected token `$'{\r''
'/photo_thumb.sh: line 7: `function thumb(){