perl -nle' exit if $. == 15; print unpack "H*", $_' testdata.txt