From: john@iastate.edu (John Hascall)
Subject: Re: tr problem?
Date: 1996/07/10 [thread overview]
Message-ID: <4s0dc1$b6k@news.iastate.edu> (raw)
In-Reply-To: 4rvc34$n6l@fang.dsto.defence.gov.au
Greg Robinson <robinson@fang.dsto.defence.gov.au> 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
next prev parent reply other threads:[~1996-07-10 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-10 4:00 tr problem? Greg Robinson
1996-07-10 4:00 ` John Hascall [this message]
1996-07-11 4:00 ` Steffen Kluge
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox