commit d5128790fecb081e405ad866c2bd78121d309f91 parent b1db0ac3a1d281ce0c6848a124418ec1dd19131a Author: hhvn <dev@haydenvh.com> Date: Tue, 2 Mar 2021 13:00:56 +0000 .scripts/bin/netpdf[NEW]: nifty pdf from da net Diffstat:
A | .scripts/bin/netpdf | | | 18 | ++++++++++++++++++ |
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/.scripts/bin/netpdf b/.scripts/bin/netpdf @@ -0,0 +1,18 @@ +#!/bin/sh + +while [ $# != 0 ] +do + + file="/tmp/netpdf.$(head -n 5 /dev/urandom | base64 | tr '/' '+' | tr -d '\n' | cut -c-10)" + while [ -f $file ] + do + file="/tmp/netpdf.$(head -n 5 /dev/urandom | base64 | tr '/' '+' | tr -d '\n' | cut -c-10)" + done + + curl -L "$1" > "$file" + files="$files $file" + shift +done + +zathura $files +rm $files