One liner hexdumper in Ruby :-) File.open(ARGV[0] || “a.out”,”rb”).each_byte { |byte| printf “\\x%02x”, byte }