Understanding Linux / UNIX tr command

Posted on in Categories , , , , , , , , , last updated December 23, 2007

Q. Can you explain the tr command and how to use it under Linux / UNIX like oses?

A. The tr utility copies the given input to produced the output with substitution or deletion of selected characters. tr abbreviated as translate or transliterate. It takes as parameters two sets of characters, and replaces occurrences of the characters in the first set with the corresponding elements from the other set i.e. it is used to translate characters.
Continue reading “Understanding Linux / UNIX tr command”