dos2unix missing (Ubuntu 10.04)

clipped from www.virtualhelp.me

dos2unix missing (Ubuntu 10.04)
Yet another “feature” from the developers of ubuntu to simplify life. “dos2unix” and “unix2dos” are missing in version 10.04 (Lucid).
First of all, install dos2unix package:
sudo aptitude install tofrodos
Then if you want “dos2unix” type “fromdos” and if you want “unix2dos“, type “todos“.

2 Responses to “dos2unix missing (Ubuntu 10.04)”

  1. You can replace “dos2unix” with “tr -d ‘\r'”.

  2. “tr” doesn’t update files in place. For that, just use:

    tr -d ‘\r’ file2; mv file2 file1

Discussion Area - Leave a Comment