Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sort unix

# 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
 
PREVIOUS NEXT
Tagged: #sort #unix
ADD COMMENT
Topic
Name
1+6 =