Which option is used when we’ve to sort files containing only numbers?

Answer: a
Explanation: When sort command acts on a numeral, strange things can happen if a file contains only numerals. So we have to use the -n option with sort command. For example,
Code:
$ sort  numfile                // without using -n
10
2
27
4
$ sort  -n numfile            // using -n
2
4
10
27
 

Tìm kiếm

Back
Top