I have a file.txt with this text:
hello my name is John: 4
hello my name is Loi: 23
hello my name is Joi: 45
hello my name is Jordan: 476
hello my name is Manu: 98
I want to order this file to echo it later and i want it to be like this:
hello my name is Jordan: 476
hello my name is Manu: 98
hello my name is Joi: 45
hello my name is Loi: 23
hello my name is John: 4
How can I do it? I know that ita can be done with sort -n but i need it the other way around and the problem is that it has text.. . Thanks (the numbers of the file are on different lines)