Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!samsung!aplcen!haven!uvaarpa!mcnc!rti!sunpix!matthew From: matthew@sunpix.UUCP ( Sun Visualization Products) Newsgroups: comp.unix.questions Subject: Re: tr Keywords: tr ascii Message-ID: <1004@greens.UUCP> Date: 17 Nov 89 17:38:36 GMT References: <579@ncelvax.UUCP> <15949@bloom-beacon.MIT.EDU> Reply-To: matthew@greens.UUCP (Matthew Stier - Sun Visualization Products) Distribution: usa Organization: Sun Microsystems, RTP, NC Lines: 31 In article <15949@bloom-beacon.MIT.EDU> jik@athena.mit.edu (Jonathan I. Kamens) writes: } } No, the 'tr' command is not capable of changing a single character }in the input to multiple characters of output. } } You could probably do it really easily in perl, though :-) } } Just another person who is amused by all the perl hackers but hasn't }gotten around to learning perl himself, } }Jonathan Kamens USnail: }MIT Project Athena 11 Ashford Terrace }jik@Athena.MIT.EDU Allston, MA 02134 }Office: 617-253-8495 Home: 617-782-0710 True, but this particular problems can be handled by AWK also. awk '{printf ("%s\r\n", $0)}' $* [Note: code written on the fly, and untested - but should work] -- Matthew Lee Stier | Sun Microsystems --- RTP, NC 27709-3447 | "Wisconsin Escapee" uucp: sun!mstier or mcnc!rti!sunpix!matthew | phone: (919) 469-8300 fax: (919) 460-8355 |