sort Linux Commands
What is Linux sort Command?
sort COMMAND:sort command is used to sort the lines in a text file.
sort [options] filename
||Sorts in reverse order.
||If line is duplicated display only once.
||Sends sorted output to a file.
Sorts the 'test.txt'file and prints result in the screen.
sort -r test.txt
Sorts the 'test.txt' file in reverse order and prints result in the screen.