[Tfug] Today's xkcd
Chris Hill
ubergeek at ubergeek.tv
Thu May 1 11:56:21 MST 2008
> =================
> #!/bin/bash
> cd /tmp
>
> url="http://www.dilbert.com"$(wget -O - -q http://www.dilbert.com/strips
> | grep dyn | grep -v Thumb | sed -e 's/^.*src="//' -e 's/" \/>.*$//')
> wget -q $url
> img=$(basename $url)
>
> echo "Dilbert Daily Strip" | /usr/bin/mutt -s "Dilbert Daily Strip" -a
> $img me at mydomain.com
>
> rm -f $img
>
> =================
>
Fantastic stuff! I love it.
C
More information about the tfug
mailing list