Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Oneliner - Print A File As Hex

DZone's Guide to

Oneliner - Print A File As Hex

·
Free Resource

perl -ne '@a=split"";for(@a){printf"%02x ",ord;print"\n"unless++$c % 20}' sample.txt
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}