commit 548acb4010b87a3287ef15055ec5dc3c67619ed9 parent 43b51c40a6143a6868e3513aaac34a029c18dfd9 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 3 Jan 2019 22:15:38 +0100 Add shdl script form lukesmithxyz Diffstat:
A | links/bin/shdl | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/links/bin/shdl b/links/bin/shdl @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +set -e + +shdl() { + curl -O $(curl -s http://sci-hub.tw/"$@" | grep location.href | grep -o http.*pdf) +} + +shdl "$@"