Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sort linux

# 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
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #sort #linux
ADD COMMENT
Topic
Name
6+8 =