X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,f2ac58bdf79ca3e8 X-Google-Attributes: gidf996b,public X-Google-Thread: 110f55,f2ac58bdf79ca3e8 X-Google-Attributes: gid110f55,public X-Google-Thread: fbb9d,f2ac58bdf79ca3e8 X-Google-Attributes: gidfbb9d,public X-Google-ArrivalTime: 1994-10-20 19:11:55 PST Path: bga.com!news.sprintlink.net!sashimi.wwa.com!not-for-mail From: Tony Nugent Newsgroups: rec.arts.ascii,alt.ascii-art,alt.binaries.pictures.ascii Subject: Info: \escape characters used with 'tr' Date: 18 Oct 1994 01:55:38 -0500 Organization: Griffith University, Brisbane, Australia Lines: 31 Sender: boba@wwa.com Approved: boba@wwa.com Message-ID: <37vrha$298@gagme.wwa.com> References: <37qivc$t7f@sashimi.wwa.com> <37sa98$sfd@gagme.wwa.com> <37skps$4mc@gagme.wwa.com> Reply-To: T.Nugent@sct.gu.edu.au NNTP-Posting-Host: gagme.wwa.com Xref: bga.com rec.arts.ascii:2215 alt.ascii-art:13219 alt.binaries.pictures.ascii:1387 chai@ta12.cs.uiuc.edu (Ian Chai) writes: >Tony Nugent wrote: >>>Well, these last two are not all that exciting, but you get the >>>general idea. (Note that you must use "\" to escape certain >>>characters for tr). >boba@wwa.com (Bob Allison) writes: >> What are the characters that must be escaped? >Any character that the shell would interpret as a special character. >What exactly those characters are depends on what shell you're using. >But most shells I know of require * & $ ^ ! ; ~ ` " < > ? \ escaped. Ian, thanks for the followup. I didn't have the time to investigate the all potential characters. I also found that the # character also needs escaping (it's interpreted as commenting out the rest of the line in some shells). Cheers Tony /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~\ | Tony Nugent Griffith University, Brisbane, Queensland, Australia| _ | | Email: T.Nugent@sct.gu.edu.au tnugent@gucis.cit.gu.edu.au | @|| \__________________________________________________________________\_/| / Pull here for the full .sig or use finger on the second address / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~