Which option is used with sort command to specify the field delimiter?

Thu Ha

New member
Which option is used with sort command to specify the field delimiter?
A. -a
B. -t
C. -k
D. -n
 
Answer: b
Explanation: sort command uses one or more contiguous spaces as the default field separator but we can specify our own field delimiter using the option -t. For example, to perform sorting using | as the delimiter, use the following command:
Code:
$ sort -t “|” file01
1243|Abd    |01 |98%
2345|Ryan |03 |76%
2390|Mash  |10 |65%
 

Tìm kiếm

Back
Top