HackerRank - Sort Command #1
April - 25/2025Problem:
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 lexicographical order.
# Input
- Dr. Rajendra Prasad January 26, 1950 May 13, 1962
- Dr. S. Radhakrishnan May 13, 1962 May 13, 1967
- ...
# Output
- Dr. Rajendra Prasad January 26, 1950 May 13, 1962
- Dr. S. Radhakrishnan May 13, 1962 May 13, 1967
- ...
# Solution
sort -n