in reply to Print some lines in a range

perl -ne "print if 41901 .. 50001" data02.log > data03.log

Replies are listed 'Best First'.
Re^2: Print some lines in a range
by ikegami (Patriarch) on Mar 05, 2010 at 00:15 UTC
    Nice, but that doesn't stop reading the input file after line 50001 as the OP asked.