example.sh - grabtitle - stupid HTML title grabber
HTML git clone git://git.codemadness.org/grabtitle
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
example.sh (185B)
---
1 #!/bin/sh
2
3 if test x"$1" = x""; then
4 echo "usage: $0 <url>" >&2
5 exit 1
6 fi
7
8 url="$1"
9 curl \
10 -s \
11 -L --max-redirs 3 \
12 -m 5 \
13 -H 'User-Agent:' \
14 "$url" 2>/dev/null | \
15 ./grabtitle