Younix sort Command
The sort command in Younix sorts lines in a file, similar to the Unix sort utility. It supports reverse and numeric sorting options.
Usage
Options
| Option | Description |
|---|---|
-f, --file <FILE> |
File to sort (default: .) |
-r, --reverse |
Sort in reverse order |
-n, --number |
Sort numerically |
-h, --help |
Print help information |
Examples
-
Sort
data.txtalphabetically: -
Sort
data.txtin reverse order: -
Sort
numbers.txtnumerically: