in reply to
printing line number
perl -lane 'print $. if $F[0]==$F[1]' file
[download]
Replace '==' with ' eq ' if you would prefer a string comparison rather than numeric (and use double quotes instead of single-quotes if you're using a DOS shell).
Comment on
Re: printing line number
Download
Code
In Section
Seekers of Perl Wisdom