To replace | with ~, which one of the following commands will be used?

Lượng Tiger

New member
To replace | with ~, which one of the following commands will be used?
A. tr ‘|\’ ‘~-‘
B. tr ‘|\’ ‘~-‘ > emp.lst
C. tr | ~ emp.lst
D. !
 
Answer: b
Explanation: The translate (tr) filter is used for manipulating individual characters in a line. It replaces the first character in the first expression with the first character in the second expression.
 

Tìm kiếm

Back
Top