Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!rphroy!caen!uwm.edu!ux1.cso.uiuc.edu!phil From: phil@ux1.cso.uiuc.edu (Phil Howard KA9WGN) Newsgroups: comp.unix.questions Subject: It seems I cannot do this with tr Message-ID: <1991May31.222945.18640@ux1.cso.uiuc.edu> Date: 31 May 91 22:29:45 GMT Organization: University of Illinois at Urbana Lines: 12 What I want to do is to translate ALL characters EXCEPT the ones I can provide a list of, to some other character (all will be to the same one). For instance if my character list has '[A-Z]' and the other character is '.', then my output would have only A-Z and (probably) lots of dots. I could use "tr" if it was practical to generate the list of ASCII characters NOT in the list I have, but I am just wondering if a simpler solution exists. If not, I'll write a C program. -- /***************************************************************************\ / Phil Howard -- KA9WGN -- phil@ux1.cso.uiuc.edu | Guns don't aim guns at \ \ Lietuva laisva -- Brivu Latviju -- Eesti vabaks | people; CRIMINALS do!! / \***************************************************************************/