🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#25
From: Mike Dixon
Date: Wed, 28 Oct 1992 17:39
21 lines
1185 bytes
lones@lones.mit.edu (Lones A. Smith) writes:

    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?

try putting these two lines in your .cshrc file:

    alias mac2unix "tr '\015' '\012'"
    alias unix2mac "tr '\012' '\015'"

then you can say

    mac2unix <the-mac-file >the-unix-file
    unix2mac <the-unix-file >the-mac-file

this takes care of the linebreaks; as long as you stick to ascii there
shouldn't be any other problems.
                                             .mike.
Technical Details
Message-ID: <mdixon.720293997@thelonius>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!ames!decwrl!decwrl!parc!mdixon
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!ames!decwrl!decwrl!parc!mdixon
From: mdixon@parc.xerox.com (Mike Dixon)
Subject: Re: Calling all unix programmers: MAC2UNIX and UNIX2MAC anyone?
Message-ID: <mdixon.720293997@thelonius>
Sender: news@parc.xerox.com
Organization: Xerox PARC
References: <1992Oct28.021445.24135@athena.mit.edu>
Date: 28 Oct 92 17:39:57 GMT
Lines: 21