Search for case insensitive duplicates
This will not give you line numbers, but it will give you a list of duplicate lines that you can then explore further. For instance:
tr 'AZ' 'az' < /tmp/foo | sort | uniq -d
Sample Data File
The above pipeline will correctly display:
one
Search for line numbers
Then you can use grep for the corresponding line numbers:
grep --ignore-case --line-number one /tmp/foo
source share