Skip to content

Commit 6432ddb

Browse files
committed
working on sort-uniq-head-tail exercises
1 parent 394b15d commit 6432ddb

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

shell-pipelines/sort-uniq-head-tail/script-01.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 name.
77
# The first line of your output should be "Ahmed London 1 10 4" (with no quotes). And the third line should be "Chandra Birmingham 12 6".
8+
9+
sort ./scores-table.txt

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 -k3,3rn ./scores-table.txt

0 commit comments

Comments
 (0)