Folks thanks a lot for your answers you saved my Soul & the best solution is the one that ikegami post
time perl -ne"next if $.<41901; print; exit if $.==50001;" data02.log > data03.logreal 0m0.26s
The next one also works but is slower to run
time perl -ne "print if 41901 .. 50001" data02.log > data03.logreal 0m33.21s
An this one runs too but it takes a lot of time to run
time perl -e"@lines=<>; print @lines[41900..50000];" data02.log > data03.logreal 1m9.42s
In reply to Re^2: Print some lines in a range
by ranrodrig
in thread Print some lines in a range
by ranrodrig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |