$ sort -k2 -n -r data.txt
$ sort -u -f names.txt
| -n | sort numerically, not alphabetically |
| -r | reverse the result order |
| -u | output only the first of equal lines (unique) |
| -h | sort human-readable sizes (2K, 1G) |
| -k | sort by the given field/key |
| -t | use the given field separator |
| -f | fold case — treat lower and upper case alike |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.