curl-grabtitle - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- curl-grabtitle (230B) --- 1 #!/bin/sh 2 3 export PATH="$HOME/bin:$PATH" 4 5 if [ $# -lt 1 ] 6 then 7 printf "usage: %s URI\n" "$(basename "$0")" >&2 8 exit 1 9 fi 10 11 #fetch-uri -h "$1" | grep '^content-type:.*text/html' >/dev/null 2>&1 || exit 12 13 fetch-uri "$1" | grabtitle