perl -anE '/(\R)/; say unpack("H*", $1);' input.txt