Solution For HackerRank Problem: Sort Command #2
Sort Command #2, is a HackerRank problem from Text Processing subdomain. In this post we will see how we can solve this challenge in Sh
In this challenge, we practice using the sort command to sort input in text or TSV formats. Given a text file, order the lines in reverse lexicographical order (i.e. Z-A instead of A-Z).
A text file.
Output the text file with the lines reordered in reverse lexicographi ....
You can find the full details of the problem Sort Command #2 at HackerRank
Solution: Please check the sort-2.sh snippet for the solution.
This solution originally posted at: Github by @srgnk