zno2

-bash: ./test.sh: /bin/bash^M: bad interpreter: No such file or directory

vi close_feature.sh 

Esc

Shift+:

:set ff

fileformat=dos

利用编辑器内部命令,查看文件格式是:dos 

这种格式用于Windows

:set ff=unix

:wq!

 

:se[t] {option}?        Show value of {option}. 

获取帮助信息,比如:

:help set

:help ff

:help options.txt

:help 任何你想要的

'fileformat' 'ff'       string (MS-DOS, MS-Windows, OS/2 default: "dos",
                                Unix default: "unix",
                                Macintosh default: "mac")

 

 

说明

ff 是 fileformat 的缩写 ,执行命令时可以互换

 

posted on 2023-06-01 16:20  zno2  阅读(11)  评论(0编辑  收藏  举报

导航