diff options
author | epoch <epoch@hacking.allowed.org> | 2018-04-06 02:06:20 -0500 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2018-04-06 02:06:20 -0500 |
commit | 87dd9c7e8c87c681b9808083448cd546880ebf3b (patch) | |
tree | 59cd927d77c7eee2b55398566c718204df841231 /printfurl | |
parent | d0adb4621b5e4447bde26a8cd54201e4005a60e8 (diff) | |
download | uritools-87dd9c7e8c87c681b9808083448cd546880ebf3b.tar.gz uritools-87dd9c7e8c87c681b9808083448cd546880ebf3b.zip |
added printfurl and start tools and ignore file. and example config.
Diffstat (limited to 'printfurl')
-rwxr-xr-x | printfurl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/printfurl b/printfurl new file mode 100755 index 0000000..3da61a6 --- /dev/null +++ b/printfurl @@ -0,0 +1,5 @@ +#!/bin/sh +cutargs="$(printf "%s\n" "$1" | tr '%' '\n' | tail -n+2 | sed 's/^\(.\).*/-\1/g')" +printfargs="$(printf "%s\n" "$1" | sed 's/%./%s/g')" +#printf "printfargs: %s\n" "$printfargs" +cuturl $cutargs | tr '\n' ' ' | xargs -L1 printf "$printfargs" |