Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!portal!cup.portal.com!Chris_F_Chiesa From: Chris_F_Chiesa@cup.portal.com Newsgroups: comp.sys.atari.8bit Subject: Re: Conversions: ASCII -> ATASCII Message-ID: <42312@cup.portal.com> Date: 14 May 91 11:43:36 GMT References: <1991May9.140834.21966@magnus.acs.ohio-state.edu> Organization: The Portal System (TM) Lines: 29 Frank Seipel asks about ASCII <--> ATASCII conversion on a UNIX system. Frank, the "standard" (IS there any such thing? :-) ) UNIX package contains a utility called "tr" which can be convinced to do what you want. "tr" takes a UNIX character stream (a file, pipe, etc.) and substitutes charac- ters FROM a set you specify, with OTHER characters from ANOTHER set you specify. Most people use it for, say, ROT13 transforms, up- or down-casing, etc., but you can ALSO use it for ASCII/ATASCII conversion! The ASCII to ATASCII conversion consists of replacing all UNIX "newline" characters with ATASCII "eol" characters, and the reverse conversion is -- of course -- the opposite. Without further ado, the commands to do the deeds: ASCII to ATASCII: tr outputfile '\012' '\233' ATASCII to ASCII: tr outputfile '\233' '\012'~r I was as thrilled to discover this a few years ago, as I'm sure a few people are to hear it today! Enjoy! :-) Chris Chiesa Chris_F_Chiesa@cup.portal.com