6 releases
0.2.2 | Sep 19, 2022 |
---|---|
0.2.1 | Sep 18, 2022 |
0.1.2 | Sep 17, 2022 |
#554 in Command line utilities
21 downloads per month
10KB
216 lines
rexturl
A simple tool to split urls in their protocol, host, port, path and query parts.
Install
cargo install rexturl
or clone the source code and run cargo build --release
to build the binary.
Usage
cat [FILE WITH URLS] | rexturl [OPTIONS]
rexturl --help
rexturl (c) 2022 by Volker Schwaberow <volker@schwaberow.de>
A simple tool to split urls in their protocol, host, port, path and query parts.
Usage: rexturl [options] [url]
Options:
-s, --scheme print the scheme
-u, --username print the username
-H, --host print the host
-p, --port print the port
-P, --path print the path
-q, --query print the query
-f, --fragment print the fragment
-S, --sort sort the output
-U, --unique remove duplicates from the output
-j, --json output in json format
-a, --all print all parts
-h, --help print this help
Contribution
If you want to contribute to this project, please feel free to do so. I am happy to accept pull requests. Any help is appreciated. If you have any questions, please feel free to contact me.
Dependencies
~1.5MB
~61K SLoC