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
I make decisions, and my brain carries them out
My brain makes the decisions, and I observe them (if I'm lucky)
I make some decisions, and my brain makes others
My spouse makes decisions and I and my brain carry them out
I wrote a program to relieve me and my brain from the burden of decision-making
The black-helicopter people project the decisions into my brain and then I do as ordered
Results (349 votes),