It seems I cannot do this with tr
Rouben Rostamian
rouben at math16.math.umbc.edu
Sat Jun 1 09:35:15 AEST 1991
In article <1991May31.222945.18640 at ux1.cso.uiuc.edu> phil at 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 . <infile >outfile
--
Rouben Rostamian Telephone: (301) 455-2458
Department of Mathematics and Statistics e-mail:
University of Maryland Baltimore County bitnet: rostamian at umbc.bitnet
Baltimore, MD 21228, U.S.A. internet: rouben at math9.math.umbc.edu
More information about the Comp.unix.questions
mailing list