From acb1a827eccf4a0bc1a42a6c705840759d4eb8ae Mon Sep 17 00:00:00 2001 From: Matthieu Keller Date: Sun, 8 Sep 2013 15:23:00 +0200 Subject: [PATCH 1/2] Create sort --- cheatsheets/sort | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 cheatsheets/sort diff --git a/cheatsheets/sort b/cheatsheets/sort new file mode 100644 index 0000000..a7ace90 --- /dev/null +++ b/cheatsheets/sort @@ -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 From d4a40a9b203efbc7dc1746471d406d37e2205556 Mon Sep 17 00:00:00 2001 From: Matthieu Keller Date: Sun, 8 Sep 2013 15:43:25 +0200 Subject: [PATCH 2/2] Update sort --- cheatsheets/sort | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cheatsheets/sort b/cheatsheets/sort index a7ace90..4c243ba 100644 --- a/cheatsheets/sort +++ b/cheatsheets/sort @@ -1,11 +1,11 @@ # To sort a file: sort file -# To sort a file by keppeing only unique: +# To sort a file by keeping only unique: sort -u file # To sort a file and reverse the result: sort -r file -# To sort a fiule randomly: +# To sort a file randomly: sort -R file