blob: 63707b6d56fefb3bff166e01c6f51eefe67a7c18 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
This repo has grown a lot of tools that I use on my own system.
There's a uri.h that can be included in other C programs
Most of the programs will take single letters to refer to parts of a URI.
each piece is:
s: scheme
u: username
k: password (k for key)
d: domain
P: port
p: path
q: query_string
f: fragment_id
## uricut
used for cutting portions of a URI out from the rest of it.
to cut the domain out of all the input URIs and show one per line.
```
urilist | uricut -d
```
## urimatch
used for matching URIs
multiple arguments will print if any of the rules match.
so if you want to print only if all of the rules match, pipe urimatch into another urimatch
to print all gemini or gopher URIs:
```
urilist | urimatch s gemini s gopher
```
to print all the gemini URIs that are for the domain gemini.thebackupbox.net
```
urilist | urimatch s gemini | urimatch d gemini.thebackupbox.net
```
to print all the non-http links using reverse match and globbing
```
urilist | urimatch rs 'http*'
```
|