New: browse.sh

This commit is contained in:
toochill 2023-08-28 05:48:36 +07:00
parent f368c89fff
commit b60c7148f8
1 changed files with 5 additions and 0 deletions

5
browse.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
# Browse web pages with curl, awk and less. Less is more!
curl -Ls "$1" | awk '/<body>/,/<\/body>/ { gsub("<[^>]*>", ""); print }' | less