xref: /freebsd/contrib/libcbor/misc/bytes.rb (revision ec0ea6efa1ad229d75c394c1a9b9cac33af2b1d3)
1#!/usr/bin/env ruby
2
3puts $*[0][2..-1].split('').each_slice(2).map {|_| '0x%02X' % _.join.to_i(16) }.join(', ')
4