UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
BOTCLEAN
ENCORE5
CLEAN
ENCORE
BOX
COMMAND
GO
sort
SYNTAX
sort [-emubdfinrtx] [+pos1] [-pos2] [-o output] [files]
FUNCTION
sort merges and then sorts lines from all
named files and writes the result on the
standard output.
SOME OPTIONS:
-b - ignores leading blanks (spaces and tabs)
in field comparisons
-f - folds uppercase letters onto lowercase
-r - reverse sense of comparison
Let us use the sort command on the file above.
datafile
9999999999999999999
TTTTTTTTTTTTTTTTTTT
8888888888888888888
KKKKKKKKkkkkkkkkkkk
1111111111111111111
4444444444444444444
UUUUUUUUUUUUUUUUUUU
zzzzzzzzzZZZZZZZZZZ
Please enter the command to sort the above file in reverse order
Enter here:
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please use sort with the -r option.
Please type sort -r datafile
I guess I must type this for you:
FORGET1
sort -r datafile
Observe the result on the terminal!
zzzzzzzzzZZZZZZZZZZ
UUUUUUUUUUUUUUUUUUU
TTTTTTTTTTTTTTTTTTT
KKKKKKKKkkkkkkkkkkk
9999999999999999999
8888888888888888888
4444444444444444444
1111111111111111111