From: Alfred Breull (puma@hannover.sgh-net.de)
Date: Fri Dec 07 2001 - 00:16:41 CET
>> > #!/bin/ash
>> > # mu dos2unix
>> > tr '\012#' '#\012' | sed 's/#$//' | tr '\012#' '#\012'
hm. usually, you replace the ^M (ctrl-M) sign when translating
a dos file to unix, don't you ?
I'm not near my mulinux box. however, isn't it just
tr -d '\015' < dos_file > unix_file
(please, note the \015 for ^M instead of \012 which is LF (line
feed) ).
---------------------------------------------------------------------
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