Skip to content

Commit 1d4dc95

Browse files
committed
Complete sort-uniq-head-tail script-02.sh exercise
1 parent 40ff335 commit 1d4dc95

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ 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+
9+
sort -k2 -nr scores-table.txt

0 commit comments

Comments
 (0)