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