Aug 26, 2002 #1 jongbsio Programmer Aug 16, 2002 5 US I am running tr 'test' 'xxxx' < myfile but it translating every occurance of t,e,s,t to x How do I translate only the word 'test' to 'xxxx'? Thanks!
I am running tr 'test' 'xxxx' < myfile but it translating every occurance of t,e,s,t to x How do I translate only the word 'test' to 'xxxx'? Thanks!
Aug 26, 2002 #2 CaKiwi Programmer Apr 8, 2001 1,294 US Use sed 's/test/xxxx/g' myfile CaKiwi Upvote 0 Downvote
Aug 26, 2002 #3 AIXSPadmin MIS May 3, 2002 633 US If you want to use `tr` to do this use [] around test: [test] Upvote 0 Downvote