mu dos2unix & unix2dos

From: Joshua Hudson (joshudson@hotmail.com)
Date: Wed Dec 05 2001 - 20:33:09 CET


dos2unix and unix2dos only work from tty or on single line files.
They should be replaced with these instead:

#!/bin/ash
# mu dos2unix
tr '\012#' '#\012' | sed 's/#$//' | tr '\012#' '#\012'

#!/bin/ash
# mu unix2dos
tr '\012#' '#\012' | sed 's/$/#/' | tr '\012#' '#\012'

I have been using these and they work.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.dk
For additional commands, e-mail: mulinux-help@sunsite.dk



This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:21 CET