# sort command sorts outuputs alphabetically as for example: cat file | sort # a b b c sort -r file # sorts reversely: c b b a sort -u file # sorts and outputs uniquely: c b a sort -n file2 # sorts numerically: 1 2 3