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).perl -lane 'print $. if $F[0]==$F[1]' file
In reply to Re: printing line number
by graff
in thread printing line number
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |