yields:
1 123000
1 123001
1 123004
1 123005
2 123004
4 123008
1 246599
1 246700
5 246999
1 246888
1 246881
1 246999
1 357001
1 357888
8 357999
If you really need to have the results like:
357888 1
357999 8
you can use a simple awk script:
Code:
uniq -c myfile.txt | awk '{print $2, $1}'