url-parts - Extract specified parts from URLs given in input stream |
url-parts - Extract specified parts from URLs given in input stream
echo <URL> | url-parts <PART> [<PART> [<PART> [...]]]
Supported parts: fragment, hostname, netloc, password, path, port, query, scheme, username, and query.NAME for the query parameter NAME, and query.NAME.N for Nth element of the array parameter NAME.
Run url-parts --help
for the definitive list of URL part names
supported by the python urlparse module installed on your system.