Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actually present the result of sorting cheese.csv by cheese name #70

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/posts/unix-sort.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down