HackerRank - Sort Command #5

April - 25/2025

Problem:

You are given a file of text,which contains temperature information about American cities, in TSV (tab-separated) format. The first column is the name of the city and the next four columns are the average temperature in the months of Jan, Feb, March and April (see the sample input). Rearrange the rows of the table in descending order of the values for the average temperature in January.

# Input

# Output

# Solution

            
    sort -r -n -k 2 -t $'\t'
    

Post: