scripts/browse.sh

6 lines
150 B
Bash
Raw Normal View History

2023-08-27 22:48:36 +00:00
#!/bin/sh
# Browse web pages with curl, awk and less. Less is more!
curl -Ls "$1" | awk '/<body>/,/<\/body>/ { gsub("<[^>]*>", ""); print }' | less