HackerRank - 'Sort' command #7

April - 25/2025

Problem:

You are given a file of pipe-delimited weather data (TSV). There is no header column in this data file. The first five columns of this data are: (a) the name of the city (b) the average monthly temperature in Jan (in Fahreneit). (c) the average monthly temperature in April (in Fahreneit). (d) the average monthly temperature in July (in Fahreneit). (e) the average monthly temperature in October (in Fahreneit).<< /h4>

# Input

# Output

# Solution

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

Post: