Newbie supplement-line symbols used to process dos text in linux

Source: Internet
Author: User
Newbie supplement-line symbols used to process dos texts in linux-general Linux technology-Linux programming and kernel information. For details, see the following. There is another free practice to learn something you like.

Laruence hasn't looked at it for a long time. If we want to update. vim, it will be enough for us to learn how much we use.

The broken line character used by DOS is ^ M $, which is called CR and LF. in Linux, there is only the broken line character LF ($.

Dos2unix [-kn] file [newfile]
Unix2dos [-kn] file [newfile]

Parameters:
-K: Retain the original mtime format of the file (the time when the file was last modified is not updated)

-N: Retain the original file and output the converted content to the new file, for example, dos2unix-n old new
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.