Tuesday, 6 September 2011

where's dos2unix on Ubuntu?

I have no idea why this is not installed by default ... anyway .. 

sudo apt-get install tofrodos
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.0kB of archives.
After this operation, 86.0kB of additional disk space will be used.
Get:1 http://sg.archive.ubuntu.com/ubuntu/ lucid/main tofrodos 1.7.8.debian.1-2 [21.0kB]
Fetched 21.0kB in 2s (8,629B/s)        
Selecting previously deselected package tofrodos.
(Reading database ... 249542 files and directories currently installed.)
Unpacking tofrodos (from .../tofrodos_1.7.8.debian.1-2_amd64.deb) ...
Processing triggers for man-db ...
Setting up tofrodos (1.7.8.debian.1-2) ...

       tofrodos - Converts text files between DOS and Unix formats.

       fromdos [ options ] [file...]
       todos [ options ] [file...]

       DOS  text  files traditionally have carriage return and line feed pairs
       as their newline characters while Unix text files have the line feed as
       their newline character.  fromdos converts text files from the DOS for‐
       mat to the Unix format, while todos converts text files from  the  Unix
       format to the DOS format.

No comments:

Post a Comment

Datanami, Woe be me