Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from rec.arts.ascii, 18 Oct 1994.
Info: \escape characters used with 'tr'

Info: \escape characters used with 'tr'

cha...@ta12.cs.uiuc.edu (Ian Chai) writes:

>Tony Nugent  <T.N...@sct.gu.edu.au> 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).

>bob...@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.N...@sct.gu.edu.au  tnu...@gucis.cit.gu.edu.au | @||
    \__________________________________________________________________\_/|
    /  Pull here for the full .sig or use finger on the second address   /
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Original message headers
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 <T.N...@sct.gu.edu.au>
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: bob...@wwa.com
Approved: bob...@wwa.com
Message-ID: <37vrha$29...@gagme.wwa.com>
References: <37qivc$t7...@sashimi.wwa.com> <37sa98$sf...@gagme.wwa.com> <37skps$4m...@gagme.wwa.com>
Reply-To: T.N...@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

Related ASCII art in the Gallery

Explore these categories from our collection of 11,000+ artworks:

About this message. This message was posted publicly to the newsgroup rec.arts.ascii in 1994 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post