Which option is used with tr command for deleting characters?

Kim Thu Đoàn

New member
Which option is used with tr command for deleting characters?
A. -d
B. -c
C. -n
D. -a
 
Answer: a
Explanation: By using tr command we can delete the characters from a file. To perform this operation, we’ve to use -d option. For example,
Code:
$ tr  -d  ‘|/’ < emp.lst |head  -n 3        //deletes | and / from the first three lines
 

Tìm kiếm

Back
Top