in reply to write exact lines of file
The $. stores the current line number of the last filehandle accessed: see here.$ perl -ne 'print if ($. == 4)' test.txt Line 4 $ perl -ne 'print if ( 4 < $. and $. < 11)' test.txt Line 5 ... Line 10
CU
Robartes-
|
|---|