commit 37704d574651fbb0f2d373b9656e3da574106130 parent a50440b77e0a63f07a7234c48d25ea4ab332f86a Author: William Casarin <jb55@jb55.com> Date: Tue, 22 Sep 2020 14:25:08 -0700 plainweb Diffstat:
A | bin/plainweb | | | 10 | ++++++++++ |
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/bin/plainweb b/bin/plainweb @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +if [ -z "$2" ]; then + printf "usage: plainweb <url> <out.txt>\n" + exit 1 +fi + +curl -s "$1" | pandoc -f html -t plain - -o "$2" + +exec lessr "$2"