in reply to Re: One-liner only checking the first line of the input file
in thread One-liner only checking the first line of the input file
perl -lane 'print $_; exit;' input.txt > output.txt
Output.txt appears identical to the input file - all lines are printed.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: One-liner only checking the first line of the input file
by stevieb (Canon) on Nov 11, 2015 at 14:41 UTC | |
by TJCooper (Beadle) on Nov 11, 2015 at 14:51 UTC | |
by stevieb (Canon) on Nov 11, 2015 at 15:04 UTC | |
by TJCooper (Beadle) on Nov 11, 2015 at 15:13 UTC | |
by stevieb (Canon) on Nov 11, 2015 at 15:18 UTC | |
|
In Section
Seekers of Perl Wisdom