Hi Everyone,
I have the data like below in CSV file
Column1,Column2
A,3
A A,4
A L,5
AIM,6
If i sort the above mentioned date in excel, here is the sorted output:
Column1,Column2
A,3
A A,4
A L,5
AIM,6
But if i tried to sort above data by using Sort in shell script, this is how i got:
Column1,Column2
A,3
A A,4
AIM,6
A L,5
If we notice the output of shell sort command, it seems like omitting white space while sorting.
My requirement is that the data have to be sorted out the way the excel does.
Can you please let me know how to do this shell script?
Thanks in advance
Gopi