Answers for "How to use the sort command"

0

How to use the sort command

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
Posted by: Guest on April-14-2022

Code answers related to "How to use the sort command"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language