On Mon, Feb 08, 2010 at 01:52:50PM -0800, Jeppe ??land wrote:
> After upgrading tofrodos to 1.7.8.debian.1-2, dos2unix and unix2dos
> are no longer installed.

Until then roll your own as:

# todos     use: todos < unix_file > dos_file
# dos files end each line in a CR/LF pair, add CR
# \015 = \0x0d = CR, \012 = \0x0a = LF
awk '{printf("%s\r\n", $0);}'

# fromdos   use: fromdos < dos_file > unix_file
# dos files end every line with CR/LF, remove the carriage return
# \015 = \0x0d = "\r" = CR, \032 = \0x1a = DosEOF = ^Z
tr -d "\015\032"

HTH,
Mike
-- 
Satisfied user of Linux since 1997.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to