Web servers - 168 Part II . Getting Around in Linux

168 Part II . Getting Around in Linux Table 4-2 Options Used with sort Option Use -c Checks to see whether the file is sorted. -d Considers only alphanumeric characters and sorts in phone directory order. -f Folds lowercase to uppercase characters. -m Merges already sorted files without resorting them. -M Compares sorted files. -n Sorts numerically. -o FILE Writes output to the specified file instead of standard output. -r Reverses the results. –help Displays help and exits. –version Displays version and exits. -b Ignores leading blanks. An example of the use and output of the sort utility is as follows: # sort list 3 32 41 5 90 Celestial Seasons Centrum Whiskas bread butter eggs flour ice milk sugar As you can see in this example, by default, lists are sorted first by numeric order followed by alphabetical order, with capital letters before lowercase. In the following example, the -f option tells sortto ignore case. # sort -f list 3 32
Searching for affordable and proven webhost to host and run your servlet applications? Go to Linux Web Hosting services and you will find it.

Leave a Reply