in reply to Re^2: One-liner only checking the first line of the input file
in thread One-liner only checking the first line of the input file
Do this:
perl -anE '/(\R)/; say unpack("H*", $1);' input.txt
It appears as your file is being read as one long string. If you're on *nix, your output should be 0a per line for as many lines you have in the file. Post what the output shows.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: One-liner only checking the first line of the input file
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 | |
by TJCooper (Beadle) on Nov 11, 2015 at 15:28 UTC | |
|
In Section
Seekers of Perl Wisdom