From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4d47729f490e75c3,start X-Google-Attributes: gidfee84,public From: Parker Barrington Subject: Substituting Characters ( ' with '' ) and ( & with and ) Date: 1995/10/25 Message-ID: <1995Oct25.214509.2290@newton.ccs.tuns.ca>#1/1 X-Deja-AN: 118087549 sender: news@newton.ccs.tuns.ca (Usenet news) references: <1995Oct24.201837.21442@newton.ccs.tuns.ca> to: parkerb@newton.ccs.tuns.ca content-type: text/plain; charset=us-ascii organization: Technical University of N.S., Continuing Education Division mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 1.1N (Windows; I; 16bit) Thank you everyone that answered my question on mailing with a subject line, I went with: mailx -s "Subject" email@address.here < filename.txt Now I'm trying to change certain characters in a string. ie I want O'Neil to become O''Neil or John & Martha to become John and Martha I've experimented with tr (translate) but it doesn't seem to allow you to substitute a single with character several characters. eg. test=O\'Neil echo $test | tr '\047' '\047\047' O'Neil test="John & Martha" echo $test | tr '\046' and John a Martha How can I substitute a single character with several? Thank you in advance. -- Parker Barrington Technical University of Nova Scotia Continuing Education Division http://www.ced.tuns.ca