unix2mac

Change Unix-style line endings to macOS-style. Replaces LF with CR. More information: <https://waterlan.home.xs4all.nl/dos2unix.html>.

Install

All systems
curl cmd.cat/unix2mac.sh
Debian Debian
apt-get install dos2unix
Ubuntu
apt-get install dos2unix
Alpine
apk add dos2unix
Arch Arch Linux
pacman -S dos2unix
image/svg+xml Kali Linux
apt-get install dos2unix
CentOS
yum install dos2unix
Fedora
dnf install dos2unix
Windows (WSL2)
sudo apt-get update sudo apt-get install dos2unix
OS X
brew install dos2unix
Raspbian
apt-get install dos2unix
Docker
docker run cmd.cat/unix2mac unix2mac powered by Commando

Change Unix-style line endings to macOS-style. Replaces LF with CR. More information: <https://waterlan.home.xs4all.nl/dos2unix.html>.

  • Change the line endings of a file:
    unix2mac path/to/file
  • Create a copy with macOS-style line endings:
    unix2mac -n path/to/unix_file path/to/mac_file

© tl;dr; authors and contributors