Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!accuvax.nwu.edu!nucsrl!telecom-request From: Mark Brader Newsgroups: comp.dcom.telecom Subject: Re: Translating Alpha Phone Numbers Message-ID: <8676@accuvax.nwu.edu> Date: 5 Jun 90 17:32:19 GMT Sender: news@accuvax.nwu.edu Reply-To: msb@sq.uucp Organization: TELECOM Digest Lines: 14 Approved: Telecom@eecs.nwu.edu X-Submissions-To: telecom@eecs.nwu.edu X-Administrivia-To: telecom-request@eecs.nwu.edu X-Telecom-Digest: Volume 10, Issue 414, Message 5 of 10 I was waiting for someone else to point out this nonportability: > if echo "$phnnum" | grep 'q\|Q\|z\|Z' > /dev/null > then > echo "There's no Q or Z on the phone dial." > exit 1 > fi To work on all variants of UNIX, the grep pattern should be '[qQzZ]'. Mark Brader, SoftQuad Inc., Toronto, utzoo!sq!msb, msb@sq.com