Heres what I'd like to do - I have that is about 50 lines in lenth(this number varies) an example is below:
243 bob
340 sean
292 sam
250 sue
390 tom
295 sam
242 bob
so far I am using |sort -d -k2
in order to sort the list according to the usernames
I know you can remove duplicates with |sort -u
but how would I get the opposite output
so after I would do |sort -d -k2
it would be as below:
242 bob
243 bob
292 sam
295 sam
340 sean
250 sue
390 tom
but how would I make is so that it is
242 bob
243 bob
292 sam
295 sam
(Any help would be greatly appreciated)
%, 2004
243 bob
340 sean
292 sam
250 sue
390 tom
295 sam
242 bob
so far I am using |sort -d -k2
in order to sort the list according to the usernames
I know you can remove duplicates with |sort -u
but how would I get the opposite output
so after I would do |sort -d -k2
it would be as below:
242 bob
243 bob
292 sam
295 sam
340 sean
250 sue
390 tom
but how would I make is so that it is
242 bob
243 bob
292 sam
295 sam
(Any help would be greatly appreciated)
%, 2004