From b60c7148f8dfceb41ce17862e97b6909f4703496 Mon Sep 17 00:00:00 2001 From: toochill Date: Mon, 28 Aug 2023 05:48:36 +0700 Subject: [PATCH] New: browse.sh --- browse.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 browse.sh diff --git a/browse.sh b/browse.sh new file mode 100755 index 0000000..3c30172 --- /dev/null +++ b/browse.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +# Browse web pages with curl, awk and less. Less is more! + +curl -Ls "$1" | awk '//,/<\/body>/ { gsub("<[^>]*>", ""); print }' | less