Here is my simple test file:
# cat test
grp_pt cmg
grp_pt compsc
grp_pt ffre
grp_pt grp_pt
grp_pt hpcedt
grp_ptix dsnlp
grp_ptix exinspect
grp_ptix ptix
grp_ptix sciml
grp_ptix vers
grp_ptix vsme
grp_pt mhm
grp_pt rec
grp_pt recom
grp_ptix grp_ptix
grp_ptix iai
grp_ptix mv
grp_ptix pid
# sort -u test
grp_pt cmg
grp_pt compsc
grp_pt ffre
grp_pt grp_pt
grp_pt hpcedt
grp_ptix dsnlp
grp_ptix exinspect
grp_ptix grp_ptix
grp_ptix iai
grp_ptix mv
grp_ptix pid
grp_ptix ptix
grp_ptix sciml
grp_ptix vers
grp_ptix vsme
grp_pt mhm
grp_pt rec
grp_pt recom
I expected the last 3 line should be together and right below of the first 5 lines. But it seems not doing that way.
Any suggestion?