Как использовать команду сортировки

sort <filename>

# to sort numerically
sort -n

# to sort and display only one of duplicate contents
sort -u

# to reverse the output of sort
sort -r

#check man sort for other options
Chris Nzoka-okoye