in reply to Re^2: Finding only names in a dir and searching for case issues
in thread Finding only names in a dir and searching for case issues

Sounds like you're looking for functionality like this:
ls -1 | while read filename; do grep -ir "$filename" * | grep -v "$fil +ename" ; done
(However, this is not perl :)

Replies are listed 'Best First'.
Re^4: Finding only names in a dir and searching for case issues
by perl_mystery (Beadle) on Mar 17, 2011 at 08:47 UTC

    Thanks for reply but that is not what I need. I have a data.txt file which contains a flat list of all the files ,now I want to grep each and every file in this data.txt in a dir(and sub dir) and print those files and the corresponding lines that has case-mismatches.Can you or anyone pls give me any sample code or an algorithm and I can try to implement in perl