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