🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.software
Article #27

Re: Calling all unix programmers: MAC2UNIX and UNIX2MAC anyone?

#27
From: Michael Giddings
Date: Wed, 28 Oct 1992 19:13
38 lines
1860 bytes
In article <1992Oct28.021445.24135@athena.mit.edu> lones@lones.mit.edu  
(Lones A. Smith) writes:
> Hi,
> 
> Now that 3.0 reads MAC and DOS diskettes, it would be nice if NeXT  
> included a simpl textfile concversion option. In the absence of such  
> aforethought, does there exist any kind unix programmers out there who  
can  
> create a program so that my linebreaks (and any other nuances of how  
unix  
> and macs treat text files) are preserved when I start a text only file  
on  
> one platform and finish it on another?
> 
> The motive here is LaTeXing files.
> 
> --
> Lones A. Smith
> Department of Economics
> MIT E52-252C
> Cambridge MA 02139
> v-mail: (617) 253-0914
> e-mail: lones@lones.mit.edu      (either NeXT mail or the garden variety  
> stuff)

I have used the following at the unix prompt and it seems to work fine:

from Mac to Next:
cat MacFile.txt | tr '\015' '\012' > NextFile.txt

I haven't tried it the other way, but it would probably work by reversing  
the 015 and the 012.

--
Michael Giddings                   | DNA sequencing technologies 
giddings@whitewater.chem.wisc.edu  | Artificial Intelligence
giddings@cs.wisc.edu               | Sciences NeXT User Group founder
            |---------\-----------/|\------------/---------|
Technical Details
Message-ID: <1992Oct28.191319.16424@pslu1.psl.wisc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sdd.hp.com!caen!uwm.edu!daffy!uwvax!zazen!psl.wisc.edu!news
References: <1992Oct28.021445.24135@athena.mit.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.software
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sdd.hp.com!caen!uwm.edu!daffy!uwvax!zazen!psl.wisc.edu!news
From: giddings@whitewater.chem.wisc.edu (Michael Giddings)
Subject: Re: Calling all unix programmers: MAC2UNIX and UNIX2MAC anyone?
Message-ID: <1992Oct28.191319.16424@pslu1.psl.wisc.edu>
Sender: news@pslu1.psl.wisc.edu (USENET News System)
Organization: Physical Sciences Lab, UW-Madison
References: <1992Oct28.021445.24135@athena.mit.edu>
Date: Wed, 28 Oct 92 19:13:19 GMT
Lines: 38