Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Jan 2007 22:52:52 -0500
From:      "Matt Emmerton" <matt@gsicomp.on.ca>
To:        "Gary Kline" <kline@tao.thought.org>, "FreeBSD Mailing List" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: perl substitution question
Message-ID:  <001201c7378f$775f3e10$1200a8c0@gsicomp.on.ca>
References:  <20070114024551.GA21847@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001201c7378f$775f3e10$1200a8c0>