Given a file with the results of the game with information about the name and time of the game like this:
6/Maksim 1/Andrey 10/Dmitriy 15/Alexey 8/Liza That is, I have a game in which the main goal is to hold out as long as possible. Who lasted longer - that is supposedly the best player. After each game session, request the player's name, and this information is recorded in the Top.txt file in the following format:
ΠΊΠΎΠ»ΠΈΡΠ΅ΡΡΠ²ΠΎ_ΡΠ΅ΠΊΡΠ½Π΄/ΠΈΠΌΡ_ΠΈΠ³ΡΠΎΠΊΠ° It is necessary to display the sorted results in the console. I honestly have no idea how to do this.
Based on the data above, it is necessary that this is output to the console:
15/Alexey 10/Dmitriy 8/Liza 6/Maksim 1/Andrey
sort -n -r < datafile, onlysortis GNU's ... - Harry