Main Menu

Search

LINUX: Sort Command To Sort Output On Specific Column Numerically In Ascending Order (How To)

For e.g. if you want to sort output from a file in ascending order on specific column numerically, in this e.g. lets assume column 5, below command can be used.

cat filename | sort -n -k5

Replace 5 in above command with whatever column name you want to sort.

Products to which Article Applies

All Linux/UNIX Operating Systems
 
Article Author: Tarun Boyella

No comments:

Post a Comment