Click to See Complete Forum and Search --> : help with simple bash script


George Kilroy
06-20-2002, 11:18 PM
I'm trying to build a bash script that will download and then display the daily Sherman's Lagoon comic.

The comics are added each day, for example last today's url would be
http://www.slagoon.com/dailies/SL02.06.20.gif



#!bin/sh

date '+%y.%m%d'

wget http://www.slagoon.com/dailies/SL02.06.20.gif

xli SL02.06.20.gif


btw, could this form of getting the daily comic without a webbrowser make them mad?

[ 20 June 2002: Message edited by: George Kilroy ]

EscapeCharacter
06-21-2002, 12:05 AM
do this
filename=`date +SL%y.%m.%d.gif`
then this
wget http://www.slagoon.com/dailies/$filename
xli $filename

George Kilroy
06-21-2002, 01:52 AM
Much thanks.