summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2021-10-30 00:27:43 +0000
committerepoch <epoch@hack.thebackupbox.net>2021-10-30 00:27:43 +0000
commit3c5cd5e68278f82cc071623419e1a205c6fee38b (patch)
tree72d8dc4493e399d7ea6cc094826e527ef9e4c564 /README
parent62817acef7618bd5d6e77ffabb39aabe33f5a37c (diff)
parentc38649558142ee7a02c176f373120f417633b022 (diff)
downloaduritools-3c5cd5e68278f82cc071623419e1a205c6fee38b.tar.gz
uritools-3c5cd5e68278f82cc071623419e1a205c6fee38b.zip
Merge branch 'master' of ssh://git.thebackupbox.net/uritools
Diffstat (limited to 'README')
-rw-r--r--README45
1 files changed, 34 insertions, 11 deletions
diff --git a/README b/README
index 1ea4b28..63707b6 100644
--- a/README
+++ b/README
@@ -1,16 +1,9 @@
-This is a handy little program to help you handle URIs that any program may want a handler for.
-Just point those programs looking for a handler at uristart.
+This repo has grown a lot of tools that I use on my own system.
-Then write a matching pattern, and a handler pipeline.
+There's a uri.h that can be included in other C programs
-The matching patterns are a series of pairs of URI-piece and a string.
-
-Each piece has a single letter you use to select the piece.
-
-here's an example that uses all of the parts:
-s://u:k@d:P/p?q#f
-
-where each piece is:
+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)
@@ -19,3 +12,33 @@ 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*'
+```