curl-grabtitle - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
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 ||… | |
12 | |
13 fetch-uri "$1" | grabtitle |