perl substitution question

Matt Emmerton matt at gsicomp.on.ca
Sun Jan 14 03:51:11 UTC 2007


> o
> Anybody know if I can do a perl substitution of the scads of
> \x80\x9D to simple double-quotes (") from the command line?

80 hex = 200 octal
9D hex = 235 octal

cat k | tr "\200" "\"" | tr "\235" "\"" > k.new

--
Matt Emmerton


More information about the freebsd-questions mailing list