flip

convert text file line endings between Unix and DOS formats

Install

All systems
curl cmd.cat/flip.sh
Debian Debian
apt-get install flip
Ubuntu
apt-get install flip
image/svg+xml Kali Linux
apt-get install flip
Windows (WSL2)
sudo apt-get update sudo apt-get install flip
Raspbian
apt-get install flip

flip

convert text file line endings between Unix and DOS formats

The program converts line endings of text files between MS-DOS and *nix formats. It detects binary files in a nearly foolproof way and leaves them alone unless you override this. It will also leave files alone that are already in the right format and preserves file timestamps. User interrupts are handled gracefully and no garbage or corrupted files left behind. The program does not convert files to a different character set, and it can not handle old Apple Macintosh line endings that use CR only. For that (and more), you can use the 'recode' program (package 'recode').