Help for this page

Select Code to Download


  1. or download this
    perl -e '$cond = join " || ", map { "($_ .. \$. == $_ + 2)" } do { loc
    +al @ARGV = shift; <> }; eval qq{ while(<>) { print if $cond } };' lin
    +es test.txt
    
  2. or download this
    perl -e'$cond=join"||",map{"($_..\$.==$_+2)"}do{local@ARGV=shift;<>};e
    +val"($cond)&&print while<>"' lines test.txt