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 b219887 commit 978cc0aCopy full SHA for 978cc0a
1 file changed
shell-pipelines/sort-uniq-head-tail/script-04.sh
@@ -5,3 +5,4 @@ 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
+sort -k3 -nr scores-table.txt | tail -n +2 | head -n 1
0 commit comments