find duplicate values in each line

As usual before asking any question, i think twice because of the aggressive response on SO. well running out of options this time. So far been struggling to find the answer because maybe i am not using the right terminology "expression" in the search field.
how can do i print lines who have duplicate values
for e.g
01 02 03
01 01 03
01 01 01 03
out of these three lines, only line two is correct.
so now let's say i want to look up for line where the value occurred x3.
in this case line 3 is correct.
i would be grateful if any body could guide me please?

Комментарии

Популярные сообщения из этого блога

Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository … doesn't support architecture 'i386'

Connection string for MariaDB using ODBC

Celery like system based on django channels