Skip to content

Commit 72d266b

Browse files
committed
Implement Sort scores by first score in descending order
1 parent 5771075 commit 72d266b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell-pipelines/sort-uniq-head-tail/script-02.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ set -euo pipefail
66
# TODO: Write a command to output scores-table.txt, with lines sorted by the person's first score, descending.
77
# The first line of your output should be "Basia London 22 9 6" (with no quotes).
88

9-
sort -k2 -r scores-table.txt
9+
sort -k3,3 -nr scores-table.txt

0 commit comments

Comments
 (0)