How to sort the output of a command in reverse order in Linux or UNIX?

DWQA QuestionsCategory: LinuxHow to sort the output of a command in reverse order in Linux or UNIX?
Editor Staff asked 2 months ago

How to sort the output of a command in reverse order in Linux or UNIX?

1 Answers
Editor Staff answered 2 months ago

the sort command in UNIX to sort the output of any command by using PIPE. By using -r option with sort command you can sort the output of any command in reverse order.