perl -nE"BEGIN { $/=\16 } say uc unpack 'H*', $_" file