Get the App
SLTechnology News&Howtos  ›  Servers  › 

Txt of linux is converted to txt of windows

Shulou Source: shulou.com Published: 2022-06-02 23:56:49 09月22日 Update

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.

Tags: System function method available in format Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Linux MariaDB Huawei NVidia