Skip to content

Commit d622d2a

Browse files
committed
Use -k3,3 for consistent sorting by first score
1 parent 72d266b commit d622d2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ set -euo pipefail
99
# Piotr Glasgow 15 2 25 11 8
1010
# Chandra Birmingham 12 6
1111

12-
sort -k3 -r -n scores-table.txt | head -n 3
12+
sort -k3,3 -r -n scores-table.txt | head -n 3

0 commit comments

Comments
 (0)