Txt of linux is converted to txt of windows
Txt of linux is converted to txt of windows
# cp unixfile.txt winfile.txt
# vi winfile.txt
: set ff=dos
: wq
Method 2:
# sed-e's unixfile.txt unixfile.txt > winfile.txt
Then get the winfile.txt to the windows system and view it normally.
This function is to retain the format of linux on the windows system. For example, if you split a lot of lines on linux, if you do not convert it to windows directly, it will be displayed as one line, all next to each other.