2020-05-06 20:40:22 +01:00
|
|
|
# dos2unix
|
|
|
|
|
2020-05-10 14:12:37 +01:00
|
|
|
> Change DOS-style line endings to Unix-style.
|
2020-05-06 20:40:22 +01:00
|
|
|
> Replaces CRLF with CR.
|
2021-07-09 15:45:55 +01:00
|
|
|
> More information: <https://manned.org/dos2unix>.
|
2020-05-06 20:40:22 +01:00
|
|
|
|
2020-05-10 20:22:17 +01:00
|
|
|
- Change the line endings of a file:
|
2020-05-06 20:40:22 +01:00
|
|
|
|
|
|
|
`dos2unix {{filename}}`
|
|
|
|
|
2020-05-10 14:12:37 +01:00
|
|
|
- Create a copy with Unix-style line endings:
|
2020-05-06 20:40:22 +01:00
|
|
|
|
|
|
|
`dos2unix -n {{filename}} {{new_filename}}`
|