sort command for MoonX.
moonx cli/sort input.txt
moonx cli/sort -n numbers.txt
moonx cli/sort -t : -k 2,2 -s records.txt| Option | Description |
|---|---|
| -r, --reverse | Reverse the comparison order. |
| -n, --numeric-sort | Compare numeric values. |
| -s, --stable | Retain input order for equal selected keys. |
| -o VALUE, --output VALUE | Write named output; - is a literal filename. |
| -S VALUE, --buffer-size VALUE | Sorting budget; default 64 MiB; bare numbers use KiB. |
| -u, --unique | Keep one record per equal comparison key. |
| -k VALUE, --key VALUE | Select the comparison field or range. |
| -t VALUE, --field-separator VALUE | Use this byte as the field separator. |
| --help | Show help. |
| --version | Show the version. |