tldr/pages/linux/dos2unix.md

14 lines
290 B
Markdown
Raw Normal View History

2020-05-06 20:40:22 +01:00
# dos2unix
> Change DOS-style line endings to Unix-style.
2020-05-06 20:40:22 +01:00
> Replaces CRLF with CR.
> More information: <https://manned.org/dos2unix>.
2020-05-06 20:40:22 +01:00
- Change the line endings of a file:
2020-05-06 20:40:22 +01:00
`dos2unix {{filename}}`
- Create a copy with Unix-style line endings:
2020-05-06 20:40:22 +01:00
`dos2unix -n {{filename}} {{new_filename}}`