From afa33b7491bd5fd0cc5c42b6374a85b43c3a0333 Mon Sep 17 00:00:00 2001 From: dx Date: Sat, 27 Jun 2020 11:00:29 +0100 Subject: +little script to download and view pdf files Curls a url to a temp file, then views it in mupdf. After mupdf is terminated, delete the file. --- Scripts/.local/scripts/web-pdf | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 Scripts/.local/scripts/web-pdf (limited to 'Scripts') diff --git a/Scripts/.local/scripts/web-pdf b/Scripts/.local/scripts/web-pdf new file mode 100755 index 0000000..624dd3c --- /dev/null +++ b/Scripts/.local/scripts/web-pdf @@ -0,0 +1,7 @@ +#!/bin/sh + +name="$(echo $1 | awk -F/ '{print $NF}')" + +curl $1 -o /tmp/$name; +mupdf /tmp/$name; +rm /tmp/$name; -- cgit v1.2.3-13-gbd6f