+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.
This commit is contained in:
7
Scripts/.local/scripts/web-pdf
Executable file
7
Scripts/.local/scripts/web-pdf
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
name="$(echo $1 | awk -F/ '{print $NF}')"
|
||||
|
||||
curl $1 -o /tmp/$name;
|
||||
mupdf /tmp/$name;
|
||||
rm /tmp/$name;
|
||||
Reference in New Issue
Block a user