This can be placed in .bashrc and can be used to get a file from (your username abc500)
http://www-users.york.ac.uk/~abc500
(this is on unix0 in the web directory.
wgetyork ()
{
if [ -f "$1" ];then
rm "$1";
fi
wget http://www-users.york.ac.uk/~abc500/"$1"
}
it checks for the file because wget will save the file you download as filename.1 if you already have a file called filename. Call it using
wgetyork filename
No comments:
Post a Comment