tr command in Linux
776852Jan 6 2011 — edited Jan 23 2011Hi 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