For example, there is a file convert.sh edited on windows (dos text format), and then uploaded to the linux system.
View the format of convert.sh on the linux system
vi convert.sh
On the vi command line, enter
: set ff
to output the file format of the file, for example: fileformat=dos
If you want to convert the format to unix ,
you can enter the command
: set ff=unix
and then enter the command
: wq
save and exit, this time the file format has been converted to unix
On a linux system, change the dos format file to unix
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326502865&siteId=291194637
Recommended
Ranking