Skip to content

Commit b219887

Browse files
committed
use sort-head pipeline to print top 3 players with the highest first score.
1 parent 06c916b commit b219887

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ set -euo pipefail
88
# Basia London 22 9 6
99
# Piotr Glasgow 15 2 25 11 8
1010
# Chandra Birmingham 12 6
11+
sort -k3 -nr scores-table.txt | head -n 3

0 commit comments

Comments
 (0)