1, presentation background:
The 10 Windows in 3 files test.txt , test1.txt and test2.txt by Xftp uploaded to CentOS 7.7 , using vim After opening the file find the following tips:
View 3 types of files:
2, the end of the line to view the file line breaks:
In vim type in : e ++ ff = unix
Exit vim
3, modifying a single file format:
In vim , type : the SET FF = UNIX , save and exit vim to open the file again later
4, batch convert file formats:
# yum -y install dos2unix
# find /tmp -type f | xargs dos2unix -o
Note: -o option indicates that converts documents written in old
5, once again view the 3 types of files: