Computer Science Ques 315
Question: In shell programming, which of the following command is used for character translation?
Options:
A) Tr
B) dd
C) Grep
D) sed
E) None of these
Show Answer
Answer:
Correct Answer: A
Solution:
- The tr command copies the given input to produce 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 occurences of the characters in the first cell with the corresponding elements from the other set i.e. it is used to translate characters.