From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9a9e0ff71b5fce17 X-Google-Attributes: gidfee84,public From: john@iastate.edu (John Hascall) Subject: Re: tr problem? Date: 1996/07/10 Message-ID: <4s0dc1$b6k@news.iastate.edu>#1/1 X-Deja-AN: 167580571 references: <4rvc34$n6l@fang.dsto.defence.gov.au> organization: Iowa State University, Ames, Iowa USA newsgroups: comp.unix.osf.osf1 Greg Robinson wrote: }Can anyone make tr work with the following input? }./qfKAA12670 ... }./qfKAA13145 }I want to replace the qf with ?? so it removes the header file, body file }and status file. ie. qf, df and xf files... }I am using the tr line thus: }tr -s 'a-z' '[??*]' < filename tr is for a 1-for-1 replacement of characters. while it can be made to work in this case, using sed is easier: sed 's/qf/??/' < filename John -- John Hascall, Software Engr. Shut up, be happy. The conveniences you ISU Computation Center demanded are now mandatory. -Jello Biafra john@iastate.edu http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud