#!/usr/bin/env ruby # encode stdin bytes as hexadecimal octets separated by spaces. puts STDIN.read.unpack('H*').first