2020-05-08 07:45:59 +01:00
|
|
|
# mac2unix
|
|
|
|
|
2020-05-10 14:12:37 +01:00
|
|
|
> Change macOS-style line endings to Unix-style.
|
2022-06-30 20:58:39 +01:00
|
|
|
> Replaces CR with LF.
|
2021-08-16 11:34:01 +01:00
|
|
|
> More information: <https://waterlan.home.xs4all.nl/dos2unix.html>.
|
2020-05-08 07:45:59 +01:00
|
|
|
|
2020-05-10 20:22:17 +01:00
|
|
|
- Change the line endings of a file:
|
2020-05-08 07:45:59 +01:00
|
|
|
|
|
|
|
`mac2unix {{filename}}`
|
|
|
|
|
2020-05-10 14:12:37 +01:00
|
|
|
- Create a copy with Unix-style line endings:
|
2020-05-08 07:45:59 +01:00
|
|
|
|
|
|
|
`mac2unix -n {{filename}} {{new_filename}}`
|