perl -ne 'print if $. = $number; exit if $. > $number;'
You probably want '==', not '=', there.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re^2: reading the file using the line number
by davorg
in thread reading the file using the line number
by greatshots
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |