Skip to content

Commit 06c916b

Browse files
committed
sort by first score in a descending order
1 parent 3c6f364 commit 06c916b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ set -euo pipefail
55
# The input for this script is the scores-table.txt file.
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).
8+
sort -k3 -nr scores-table.txt

0 commit comments

Comments
 (0)