Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!peruvian.utah.edu!nrunyon From: nrunyon%peruvian.utah.edu@cs.utah.edu (The Bard's Mystic Song) Newsgroups: comp.sys.apple2 Subject: Re: replace control-J w/control-M Message-ID: <1991Feb5.161949.16600@hellgate.utah.edu> Date: 5 Feb 91 23:19:48 GMT References: <8028@plains.NoDak.edu> Organization: University of Utah CS Dept Lines: 25 In article <8028@plains.NoDak.edu> swiers@plains.NoDak.edu (Mike Swiers ) writes: >Anyway, I can't seem to do much with it with the control-J's >(linefeeds, I guess). Are there any Apple-II or Unix utils >I can use to do this for me? > >Mike > "I own a Harley, not just a T-shirt!" Apple IIgs! >I like to trade. Got anything you want to get rid of? Sun 2/120! >I got _lots_ of motorcycle parts, whatcha need? Sun 2/50! >swiers@plains.nodak.edu, mike@egf-bbs.UUCP, ud169430@ndsuvm1.bitnet In UNIX the following 2 alias commands will strip Ctrl-J's and make them Ctrl-M's and vise-versa. (Strip Ctrl-J's, make them Ctrl-M's) alias apple "cat \!^ | tr '\012' '\015' > \!^.X ; rm -f \!^; mv \!^.X \!^" (Strip Ctrl-M's, make them Ctrl-J's) alias unix "cat \!^ | tr '\015' '\012' > \!^.X ; rm -f \!^; mv \!^.X \!^" Neil - ---------- Baltimore Orioles! Only 2 months until Spring Training ---------- Neil M. Runyon | Apple IIgs WOZ edition University of Utah - CS Dept | Scotland: Old Castles, Dark Ale, and Golf... nrunyon@peruvian.utah.edu | Want to play a game of Xtrek?!?