update
This commit is contained in:
parent
28933b6af8
commit
ee55a0b016
12 changed files with 885 additions and 1 deletions
45
technology/applications/cli/rexturl.md
Normal file
45
technology/applications/cli/rexturl.md
Normal file
|
@ -0,0 +1,45 @@
|
|||
---
|
||||
obj: application
|
||||
repo: https://github.com/vschwaberow/rexturl
|
||||
rev: 2025-01-30
|
||||
---
|
||||
|
||||
# rexturl
|
||||
A versatile command-line tool for parsing and manipulating URLs.
|
||||
|
||||
## Usage
|
||||
Usage: `rexturl [OPTIONS] [URLS...]`
|
||||
|
||||
If no URLs are provided, rexturl will read from stdin.
|
||||
|
||||
### Options
|
||||
|
||||
| Option | Description |
|
||||
| ------------------- | --------------------------------------------------------- |
|
||||
| `--urls <URLS>` | Input URLs to process |
|
||||
| `--scheme` | Extract and display the URL scheme |
|
||||
| `--username` | Extract and display the username from the URL |
|
||||
| `--host` | Extract and display the hostname |
|
||||
| `--port` | Extract and display the port number |
|
||||
| `--path` | Extract and display the URL path |
|
||||
| `--query` | Extract and display the query string |
|
||||
| `--fragment` | Extract and display the URL fragment |
|
||||
| `--sort` | Sort the output |
|
||||
| `--unique` | Remove duplicate entries from the output |
|
||||
| `--json` | Output results in JSON format |
|
||||
| `--all` | Display all URL components |
|
||||
| `--custom` | Enable custom output mode |
|
||||
| `--format <FORMAT>` | Custom output format [default: `{scheme}://{host}{path}`] |
|
||||
| '--domain' | Extract and display the domain |
|
||||
|
||||
|
||||
### Custom Output Format
|
||||
When using `--custom` and `--format`, you can use the following placeholders:
|
||||
- `{scheme}`
|
||||
- `{username}`
|
||||
- `{host}`
|
||||
- `{domain}`
|
||||
- `{port}`
|
||||
- `{path}`
|
||||
- `{query}`
|
||||
- `{fragment}`
|
Loading…
Add table
Add a link
Reference in a new issue