url query

Get the query string of a URL

Signature

> url query ...rest

Parameters

  • ...rest: optionally operate by cell path

Examples

Get a query string

> echo 'http://www.example.com/?foo=bar&baz=quux' | url query

Returns an empty string if there is no query string

> echo 'http://www.example.com/' | url query