mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Create sort
This commit is contained in:
parent
64cba079f9
commit
acb1a827ec
1 changed files with 11 additions and 0 deletions
11
cheatsheets/sort
Normal file
11
cheatsheets/sort
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# To sort a file:
|
||||||
|
sort file
|
||||||
|
|
||||||
|
# To sort a file by keppeing only unique:
|
||||||
|
sort -u file
|
||||||
|
|
||||||
|
# To sort a file and reverse the result:
|
||||||
|
sort -r file
|
||||||
|
|
||||||
|
# To sort a fiule randomly:
|
||||||
|
sort -R file
|
Loading…
Reference in a new issue