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

18 lines
227 B
Markdown

# Sort
## TL;DR
```shell
# 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
```