Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

tr command in Linux

776852Jan 6 2011 — edited Jan 23 2011
Hi All,

I searched internet for the usage of tr command, honestly it is very powerfull when process flat files,

take text replacement for example

cat file1.txt | tr "abc" "xyz"

the output will be that 'a' change to 'X', 'b' to 'Y', 'c' to 'Z'

but does it support function that can replace "abc" to "xyz", not change them individually?

Please advise which kind of option should I use for tr or any other command in Linux?

thanks

Henry
This post has been answered by Dude! on Jan 6 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2011
Added on Jan 6 2011
2 comments
474 views