tldr/pages/linux/mac2unix.md

14 lines
308 B
Markdown
Raw Normal View History

2020-05-08 07:45:59 +01:00
# mac2unix
> Change macOS-style line endings to Unix-style.
2020-05-08 07:45:59 +01:00
> Replaces LF with CR.
> More information: <https://waterlan.home.xs4all.nl/dos2unix.html>.
2020-05-08 07:45:59 +01:00
- Change the line endings of a file:
2020-05-08 07:45:59 +01:00
`mac2unix {{filename}}`
- Create a copy with Unix-style line endings:
2020-05-08 07:45:59 +01:00
`mac2unix -n {{filename}} {{new_filename}}`