mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-24 03:37:16 +00:00
![Ed Maste](/assets/img/avatar_default.png)
git-subtree-dir: contrib/libcbor git-subtree-mainline:293663f4da
git-subtree-split:5b2defbd2a
6 lines
140 B
Ruby
Executable file
6 lines
140 B
Ruby
Executable file
#!/usr/bin/env ruby
|
|
|
|
lst = (ARGV.empty? ? STDIN.read : IO.binread(ARGV[0])).bytes.map {|_| '0x%02X' % _ }
|
|
puts lst.size
|
|
puts lst.join(', ')
|