Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
 
PREVIOUS NEXT
Tagged: #How #sort #command
ADD COMMENT
Topic
Name
8+5 =