- or download this
#cat a.txt
a file line 1
...
b file line 1
b file line 2
b file line 3
- or download this
#perl -ne "print if 1..2" a.txt b.txt
a file line 1
a file line 2
- or download this
#perl -ne "print if 1..2; close ARGV if eof" a.txt b.txt
a file line 1
a file line 2
b file line 1
b file line 2