dos2unix
The other day I was going through some of my files and noticed that some files had the DOS style CR/LF lines, ugh. I couldn't remember what the standard tool in linux is to convert this, turns out it's dos2unix which is linked to fromdos command.
The package is called, forgettably, tofromdos, i.e. to install it you need to call:
The package is called, forgettably, tofromdos, i.e. to install it you need to call:
sudo apt-get install tofromdosFor such a simple utility it doesn't provide very much, there's no man page and only -h works and not the more common --help, but it does work as advertised. I was surprised that it isn't included in the standard Linux install.
Comments