Added sort and uniq notes to the knowledge base

This commit is contained in:
Michele Cereda
2022-05-05 15:12:38 +02:00
parent b26e7ba6fa
commit 5e97e30ffe
2 changed files with 37 additions and 0 deletions

17
knowledge base/sort.md Normal file
View File

@@ -0,0 +1,17 @@
# 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
```