unix2dos/dos2unix no longer included in tofrodos 1.7.8.debian.1-2
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
# 15 = x0d = CR, 12 = x0a = LF
awk '{printf("%s
", $0);}'
# fromdos use: fromdos < dos_file > unix_file
# dos files end every line with CR/LF, remove the carriage return
# 15 = x0d = "
" = CR, 32 = x1a = DosEOF = ^Z
tr -d " |