dos2unix
Change DOS-style line endings to Unix-style. Replaces CRLF with LF. More information: <https://manned.org/dos2unix>.
Install
- All systems
-
curl cmd.cat/dos2unix.sh
- Debian
-
apt-get install dos2unix
- Ubuntu
-
apt-get install dos2unix
- Alpine
-
apk add dos2unix
- Arch Linux
-
pacman -S dos2unix
- 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
- Dockerfile
- dockerfile.run/dos2unix
- Docker
-
docker run cmd.cat/dos2unix dos2unix
powered by Commando
Change DOS-style line endings to Unix-style. Replaces CRLF with LF. More information: <https://manned.org/dos2unix>.
-
Change the line endings of a file:
dos2unix filename
-
Create a copy with Unix-style line endings:
dos2unix -n filename new_filename
© tl;dr; authors and contributors