in reply to
reading the file using the line number
inspired by tom christiansens oneliners:
perl -ne 'print if $. == $number; exit if $. > $number;'
Edit: corrected typo, thx to davorg
"WHAT CAN THE HARVEST HOPE FOR IF NOT THE CARE OF THE REAPER MAN"
-- Terry Pratchett, "Reaper Man"
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
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (137 votes),