To sort the data or contents of the file use the sort command.
> sort <inputfile.txt>
By default the data from input file is separated by space .
To sort based on second column of the data use
>sort -k2 inputfile.txt
> sort <inputfile.txt>
By default the data from input file is separated by space .
To sort based on second column of the data use
>sort -k2 inputfile.txt
Comments
Post a Comment