On Mon, Jul 26, 2010 at 11:15:03PM -0800, bryanm@acsalaska.net wrote:
> Does anybody have, or know of, a little command-line tool to unescape
> HTML urls (i.e. change '%2F' to '/', etc.)? It wouldn't be hard to
> code one up, but I won't bother if I can find one ready-made.
Expanding a bit:
> perl -MURI::Escape -wle 'print uri_unescape($_) for @ARGV' http://foo.com/%5ffoo http://bar.com/%5fbar
http://foo.com/_foo
http://bar.com/_bar
> cat test.html
http://foo.com/%5ffoo
http://bar.com/%5fbar
> perl -MURI::Escape -we 'print uri_unescape($_) while <>' test.html
http://foo.com/_foo
http://bar.com/_bar
-- Michael Fowler www.shoebox.net --------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.Received on Tue Jul 27 10:42:17 2010
This archive was generated by hypermail 2.1.8 : Tue Jul 27 2010 - 10:42:17 AKDT