in reply to One-liner only checking the first line of the input file
Are your line endings what you expect (ie. is the file being treated as one long line as opposed to several)? Try this, and see if you get a single line, or all of the lines printed:
perl -lane 'print $_; exit;' input.txt
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: One-liner only checking the first line of the input file
by TJCooper (Beadle) on Nov 11, 2015 at 14:30 UTC | |
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 | |
|
In Section
Seekers of Perl Wisdom