We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 287b4b0 commit d652ac1Copy full SHA for d652ac1
1 file changed
shell-pipelines/sort-uniq-head-tail/script-04.sh
@@ -5,3 +5,5 @@ set -euo pipefail
5
# The input for this script is the scores-table.txt file.
6
# TODO: Write a command to output scores-table.txt, with shows the line for the player whose first score was the second highest.
7
# Your output should be: "Piotr Glasgow 15 2 25 11 8" (without quotes).
8
+
9
+sort -k3 -nr scores-table.txt | head -n 2 | tail -n 1
0 commit comments