TIP: Click on subject to list as thread! ANSI
echo: muffin
to: Winston Smith
from: andrew clarke
date: 2003-12-10 15:42:04
subject: [--- DOS2UNIX ? ---]

Fri 2003-11-28 11:39, Winston Smith (1:323/981) wrote to Vince Coen:

 >>  WS> If you are going from DOS to UNIX, why not just use a "TR
 >>  WS> filter with complement" in the jobstream?  UNIX excels at 
 >>  WS> lexical transformations. (Or are you stuck on the DOS side of 
 >>  WS> things?)

 >> This code is available and works, and I do not try and re-invent
 >> the wheel.

 WS> Exactly!  And since it is already *BUILT INTO UNIX*, why add an
 WS> overly complex piece of absurd kludge-ware to duplicate what UNIX 
 WS> has already been doing for the last three decades as part of its 
 WS> native OS?

dos2unix will easily compile + run on most non-UNIX operating systems, so
there is a portability advantage there.  Also, some people might find it
less difficult to remember how to use than say, TR.

I think duplicating the functionality of dos2unix isn't possible with TR
alone.  I'd be interested in seeing a sh/csh shell script that did it
though.

-- mail{at}ozzmosis.com

--- timEd/FreeBSD 1.11.b1
* Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)
SEEN-BY: 633/267 270
@PATH: 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.