asort: print the input lines in sorted order By default the input lines are handled as whole strings Parameters: -r: reversed order -n: handle the input as numbers (12 < 110) -t {c}: use the c char as column delimiter -delim {c}: see -t -k {n}: use the n-th column as a sorting key Several keys can be specified, the sorting order is that of the definition. The output will contain the entire input lines -ie {expression}: use the result of the expression as the base for the sorting (for xmpl like a substring). This is used only for the sorting - the output will contain the entire (unmodified) input string. The name of the runtime variable is 'line'. Examples: acat ... | sort -> simple char-based string ... | sort -n -> number based sorting ... | sort -ie "strtok(line, ' ', 1)" -> use the second token of the input lines as the base for the sorting Input: 0 apple 1 plum 2 grape With simple string-based sorting the result is the same as in this list (defined by the leading numbers). The example results the fruit-name-based sorting order: 0 apple 2 grape 1 plum