That's a MacOS line ending \r, aka a carriage return. See if this works:
perl -012 -lane 'print "$F[2]\t$F[7]" if $F[7] > 0' < input.txt
The -0 flag sets the input record separator (line ending) to \r in octal form.
In reply to Re^5: One-liner only checking the first line of the input file
by stevieb
in thread One-liner only checking the first line of the input file
by TJCooper
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |