From: Wild Karl-Heinz Date: 2002-04-24T20:25:18+09:00 Subject: Converting hex to string I try to convert a tcpdump like 4534 abcd 34df .... with a script to ascii characters. z.b. echo "45" | ruby -n -e '$_.gsub( ".." ) { | s | print "0x#{s}".to_i.chr }; print "\n"' But it seems that this isn't the right way. the convert from the 2 char into a hex gives 0 as result. What do i wrong? -- Karl-Heinz