Flags
-k: selects the column number to sort
-n: indicates you are sorting numeric values so use numeric ordering (ex: 10, 11, not 10, 100)
-r: sort in reverse (descending) order for this column
An example line of code that sorts by numeric values in column 2 in descending order would be as follows.
Nice post.Thank you....
ReplyDeletehadoop admin online course