1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 01:24:55 +02:00
tldr/pages/linux/dos2unix.md
fejx 1f499c3c14
dos2unix, unix2dos, mac2unix, unix2mac: rephrase wording in first example
Adding 'the' is more accurate because it's *all* of the line endings that get replaced, not just *some* of them.

Apply suggestions from code review

Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2020-05-21 12:30:20 +01:00

239 B

dos2unix

Change DOS-style line endings to Unix-style. Replaces CRLF with CR.

  • Change the line endings of a file:

dos2unix {{filename}}

  • Create a copy with Unix-style line endings:

dos2unix -n {{filename}} {{new_filename}}