I really hate it to download a snapshot of a project and then copy the name of the tarball to extract it,
especially if its named like foo-20060118.tar.gz and I have other snapshots in a directory too.
Thats why I died the following quick hack (yes its not perfect especially because of error checking but WFM ; )
#!/bin/sh
URL=$1
FILE=`echo $URL | sed -e 's/.\+\/\(.\+\.tar\.\(gz|bz2\)\)$/\1/' `
wget $URL
TYPE=`file $FILE | cut -f 2 -d " "`
if [ "$TYPE" = "bzip2" ]; then
tar xvfj $FILE
else
tar xvfz $FILE
fi
Its really a quick hack, but maybe someoneelse think its useful too.