I normally don't post much about Linux because I only use it on a few EC2 servers, but this is worth posting because I couldn't find anything online about it. I was trying to download a single file using wget and save it to a new filename. Well, I incorrectly assumed that wget could do that, but it doesn't seem that it can. Instead, you have to download the file and then issue a move (mv) command on it. Here's an example:
ColdFISH is developed by Jason Delmore. Source code and license information available at coldfish.riaforge.org
wget -P /mnt/filestore/unprocessed/ http://www.example.com/uglyfilename.mov
mv /mnt/filestore/unprocessed/uglyfilename.mov /mnt/filestore/unprocessed/PrettyName.mov
1wget -P /mnt/filestore/unprocessed/ http://www.example.com/uglyfilename.mov
2mv /mnt/filestore/unprocessed/uglyfilename.mov /mnt/filestore/unprocessed/PrettyName.mov
Obviously, use your own urls and filenames.
Comments