# To sort a file: sort file # To sort a file by keeping only unique: sort -u file # To sort a file and reverse the result: sort -r file # To sort a file randomly: sort -R file