From 87dd9c7e8c87c681b9808083448cd546880ebf3b Mon Sep 17 00:00:00 2001 From: epoch Date: Fri, 6 Apr 2018 02:06:20 -0500 Subject: added printfurl and start tools and ignore file. and example config. --- printfurl | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 printfurl (limited to 'printfurl') 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" -- cgit v1.2.3