How do I sort two columns in Linux?

Kim Thu Đoàn

New member
How do I sort two columns in Linux?
Answer
Use the -k option to sort on a certain column. For example, use ” -k 2 ” to sort on the second column. In old versions of sort, the +1 option made the program sort on the second column of data ( +2 for the third, etc.).
 

Tìm kiếm

Back
Top