Command line URL encoded form parser
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
formq.xcodeproj
.gitignore
.travis.yml
LICENSE.md
Makefile
README.md
formq.1
formq.c

README.md

formq

Command line URL encoded form parser.

... | formq [-n] [key]

Description

Reads a URL encoded form from standard input and prints the decoded value of the given key. No trailing newline character is printed if -n is set.

If no key is given, all keys and values are printed, one per line.

Examples

Decode a form:

$ echo 'From=Dennis&Message=Hello%2C+World%21' | formq
From=Dennis
Message=Hello, World!

Extract just the Message key:

$ echo 'From=Dennis&Message=Hello%2C+World%21' | formq Message
Hello, World!

Running

To compile, install and uninstall from source:

make
make install   [DESTDIR=] [PREFIX=/usr/local] [MANPREFIX=PREFIX/man]
make uninstall [DESTDIR=] [PREFIX=/usr/local] [MANPREFIX=PREFIX/man]

Author

Sijmen J. Mulder (ik@sjmulder.nl)