Here’s how to do a numerical sort of a text file using the sort command with column 1 as 1st key, column 2 as second key:
sort -g --key=1 --key=2 file -o file
Here’s how to do a numerical sort of a text file using the sort command with column 1 as 1st key, column 2 as second key:
sort -g --key=1 --key=2 file -o file