How to : Find duplicate number from file? with bash

Thanks
AVKlinux

What is the format of the file?

What do you want to output? The duplicates? Only one instance of every number? The non-duplicated numbers?

> cat file97
101
102
103
104
105
106
107
108
109
110
105
109
> sort -n file97 | uniq -c | awk '$1>1 {print $2}'
105
109

sort | uniq -d is enough

File

abc:2
sfhdjfhj:123
asdfsfs:2
asjkfj:123
fdsjfh:123

from above file i want to print duplicate lines...?

Those five lines are unique.
Or, are you referring to the number after the : delimiter?

yes i m refereeing the number after delimiter.

Simple example

abc:1
abd:2
aed:1

Then output should be

abc:1
aed:1

Thanks for your quick response.