aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-09-04 14:47:29 -0300
committerEuAndreh <eu@euandre.org>2022-09-04 14:47:29 -0300
commit931cac47c81f909927f23888d82f7d02ce4b7023 (patch)
treed20ddd24107a7e223b72b481070d7714e27a531d
parentgit mv bin/html bin/htmlesc (diff)
downloaddotfiles-931cac47c81f909927f23888d82f7d02ce4b7023.tar.gz
dotfiles-931cac47c81f909927f23888d82f7d02ce4b7023.tar.xz
bin/uri: Improve example from help string
-rwxr-xr-xbin/uri3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/uri b/bin/uri
index 4e57f7c..23716b9 100755
--- a/bin/uri
+++ b/bin/uri
@@ -32,7 +32,8 @@ sub help($fh) {
Encode the URL:
- $ echo 'https://euandre.org' | uri
+ $ echo "https://euandre.org/?q=$(printf '%s' 'a param' | uri)"
+ https://euandre.org/?q=a%20param
Decode the content from the file: