Files
oam/knowledge base/sort.md
2022-05-05 15:12:38 +02:00

227 B

Sort

TL;DR

# Sort all given lines.
sort path/to/file

# Sort all lines reverse.
sort -r path/to/file

# Sort lines numerically.
sort -n path/to/file

# Sort lines and remove duplicates.
sort -u path/to/file