I have a high.txt file in it that says:

 vova:14 dimdim:64 vova:66 player:246 pepe:2 pepe:35 

The question is how to sort this file by the number after : should get this:

 player:246 vova:66 dimdim:64 pepe:35 vova:14 pepe:2 

Using the command sort -th -n alphabetically.
Maybe using regular expressions can this be done?

    1 answer 1

    Understood, here is the command to sort: sort -nr -t : -k 2,2 high.txt

    -n operations with numbers

    -r flip file

    -t specify a delimiter

    -k column number