A command line tool for manipulating URL-encoded query strings.
$ echo -n '@#$%^&*' | urlenc enc
%40%23%24%25%5E%26%2A
$ echo -n '%40%23%24%25%5E%26%2A' | urlenc dec
@#$%^&*
$ echo -n 'foo=bar&fizz=buzz' | urlenc list
fizz: buzz
foo: bar
$ urlenc query <<EOF
> fizz: buzz
> foo: bar
> EOF
fizz=buzz&foo=bar
Install via go get
like so:
$ go get github.com/bww/urlencode/cmd/urlenc
To build the tools:
$ make
To install the tools in $GOPATH/bin
:
$ make install