Surfraw
November 6, 2020
My first elvi
searches Programming Praxis:
#!/bin/sh
. surfraw || exit 1
w3_usage_hook () {
cat <<EOF
Usage: $w3_argv0 [search words]…
Description:
Search Programming Praxis
EOF
w3_global_usage
}
w3_config
w3_parse_args "$@"
if test -z "$w3_args"; then
w3_browse_url "https://programmingpraxis.com/"
else
escaped_args=w3_url_of_arg $w3_args
w3_browse_url "http://programmingpraxis.com?s=${escaped_args}"
fi
And my second elvi
interfaces to the very useful cheat
program:
#!/bin/sh
. surfraw || exit 1
w3_usage_hook () {
cat <<EOF
Usage: $w3_argv0 [search words]…
Description:
Search Cheat Sheets
EOF
w3_global_usage
}
w3_config
w3_parse_args "$@"
if test -z "$w3_args"; then
curl cheat.sh
else
escaped_args=w3_url_of_arg $w3_args
curl cheat.sh/${escaped_args}
fi
Have fun! [ I hate the damned new smart editor on WordPress. ]
Interesting. For the record, there is an online tool that does the same, with a large variety of options and customizations. It’s called Searx. Have a nice weekend!
Here is a very simple elvi for a simple search of the Bangor Daily News site.