suppose u have a file
1
2
2
-3
2
2
-3
4
5
-2
-3
-4
-4
-2
1
1
1
so output should be lie that one for groupings...
means how many times 1 has come in this file
1 4
2 4
4 1
5 1
-3 3
-4 2
means -4 has come 2 times...
thanks
suppose u have a file
1
2
2
-3
2
2
-3
4
5
-2
-3
-4
-4
-2
1
1
1
so output should be lie that one for groupings...
means how many times 1 has come in this file
1 4
2 4
4 1
5 1
-3 3
-4 2
means -4 has come 2 times...
thanks
sort input_file | uniq -c