From: ts Date: 2002-04-24T20:43:03+09:00 Subject: Re: Converting hex to string >>>>> "W" == Wild Karl-Heinz writes: W> echo "45" | ruby -n -e '$_.gsub( ".." ) { | s | print W> "0x#{s}".to_i.chr }; print "\n"' Well you can try pigeon% echo 45 | ruby -ne '$_.gsub(/../) {|s| print s.hex.chr}; puts' E pigeon% Guy Decoux