#perl -ne "print if 1..2" a.txt b.txt a file line 1 a file line 2