I have a tab delimited row , I want to sort the lines only with respect to the first column.
can this be achieved using Unix sort?
u.s 2||`` U.S ''||527 || 107
u.s. 2||`` U.S. ''||532 || 107
us. 2||Us.||532 || 112
u.s. 2||U.s.||629 || 112
us. 2||US.||6444 || 112
us 2||US||8655700 || 27
u.s 2||U.s||992 || 112
It has to sort using
u.s
u.s.
us.
u.s.
us.
us
u.s
Dots are not being considered by the sort. The above one is sorted after the use of sort -k1. u.s. and u.s. are not together.