Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!spool.mu.edu!mips!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!haven.umd.edu!umbc3.umbc.edu!math16.math.umbc.edu!rouben From: rouben@math16.math.umbc.edu (Rouben Rostamian) Newsgroups: comp.unix.questions Subject: Re: It seems I cannot do this with tr Message-ID: <1991May31.233515.713@umbc3.umbc.edu> Date: 31 May 91 23:35:15 GMT References: <1991May31.222945.18640@ux1.cso.uiuc.edu> Sender: newspost@umbc3.umbc.edu (News posting account) Organization: University of Maryland Baltimore County, Mathmatics Department Lines: 15 In article <1991May31.222945.18640@ux1.cso.uiuc.edu> phil@ux1.cso.uiuc.edu (Phil Howard KA9WGN) writes: >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. Use the flag -c ("c" for complement) with tr: tr -c A-Z . outfile -- Rouben Rostamian Telephone: (301) 455-2458 Department of Mathematics and Statistics e-mail: University of Maryland Baltimore County bitnet: rostamian@umbc.bitnet Baltimore, MD 21228, U.S.A. internet: rouben@math9.math.umbc.edu