From 93fb5b89164ff4d7014afc720a18d857589a73d0 Mon Sep 17 00:00:00 2001 From: Marc Paquette Date: Thu, 22 Jul 2021 23:13:13 -0400 Subject: [PATCH] actually present the result of sorting cheese.csv by cheese name --- content/posts/unix-sort.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/posts/unix-sort.md b/content/posts/unix-sort.md index 5e20998..0925c70 100644 --- a/content/posts/unix-sort.md +++ b/content/posts/unix-sort.md @@ -195,10 +195,10 @@ Suppose a file exists with a list of cheeses that is saved as `cheese.csv`. The file may be sorted by the name of the cheese using a combination of the `-k` and `-t` options. sort -k 2 -t , cheese.csv - 2,Maroilles,1.13 - 3,Stinking Bishop,1.65 1,Brie de Meaux,1.99 + 2,Maroilles,1.13 4,Munster,1.29 + 3,Stinking Bishop,1.65 To sort on the most expensive cheese the numeric and reverse options can be used.