Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Unix command. Suppose the variable name contains a player's name ( $name ), and that the variable score contains that player's score ( $score ).

Unix command. Suppose the variable "name" contains a player's name ( $name ), and that the variable "score" contains that player's score ( $score ). Given the text file below, give a command that will display the new high-score list with the following restrictions: Only 10 high scores may be displayed. The 10 high scores are displayed in numerically descending order (highest to lowest). A player may only appear in the high-score list once -- if the player has a new high score, only their highest score is retained in the list. Do not modify the input file. Assume no issues with the name or score variables. HINT1: use printf '%s\t%s ' to add the new high score. HINT2: use uniq -f to remove duplicate entries per player. HINT3: use rev to convert intermediate formats. Other tools may be necessary.

Text file :

omargeddon 12895404 Larquey 12183634 S.BAZ 10679497 Frankie 9436473 oyamafamily 7933143 kernzy 6887239 GTibel 6510483 ILLSeaBass 5844542 darrin9999 4895572 OriginalGamer 4891855

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are some of the possible scenes from our future?

Answered: 1 week ago

Question

1. What are your creative strengths?

Answered: 1 week ago