KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a file of 2 columns and n number of rows. column1 contains names and column2 age . I want to sort the content of this file in ascending order based on the age (in second column). The result should display the name of the youngest person along with name and then second youngest person and so on... Any suggestions for a one liner shell or bash script.
Tags (comma-separated)
Save Edits
Cancel