Path: utzoo!attcan!uunet!zephyr.ens.tek.com!tektronix!reed!reeder From: reeder@reed.bitnet (Doug Reeder,,,2343817) Newsgroups: comp.sys.apple2 Subject: Re: ^J <-> ^M (on Unix) Message-ID: <15249@reed.UUCP> Date: 30 Jul 90 07:52:41 GMT References: Sender: news@reed.UUCP Reply-To: reeder@reed.bitnet (Doug Reeder) Organization: Tether Propulsion Division, Institute of Knowledge, Jinx Lines: 24 In article marekp@contact.UUCP (Marek Pawlowski) writes: _ _ _To change all the ^J's in a file to ^M's, on a Unix system. Execute _the following command: _ Or better yet, put the following in your .login or .cshrc: alias lf2cr "cat \!^ | tr '\012' '\015' > \!^.X ; rm -f \!^; mv \!^.X \!^" alias cr2lf "cat \!^ | tr '\015' '\012' > \!^.X ; rm -f \!^; mv \!^.X \!^" use as follows: lf2cr foo.file cr2lf bar.file Or, if you're really ambitious, you could revise these so that lf2cr and cr2lf work for more than one file at a time. Doug Reeder USENET: ...!tektronix!reed!reeder from ARPA: tektronix!reed!reeder@berkeley.EDU BITNET: reeder@reed.BITNET 7th: Each swallow works hard to be perfect pilot-provider-builder-trainer- teacher-lover-mate,no half-true hate! - Dr.Brommer's 18-in-1 Pure Castile Soap