'Sort' command #6, is a HackerRank problem from Text Processing subdomain. In this post we will see how we can solve this challenge in Sh

Problem Description

You are given a file of tab separated 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 av ....

You can find the full details of the problem 'Sort' command #6 at HackerRank

Solution: Please check the sort-6.sh snippet for the solution.

This solution originally posted at: Github by @srgnk