ColdFusioning.com
My personal blog about ColdFusion, code, Google, & computers...
ColdFusioning: Pronunciation \kold-fy�-zhn-ing\ Noun: The action of one that writes ColdFusion.
Linux wget Single File and Change Filename
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:
wget -P /mnt/filestore/unprocessed/ http://www.example.com/uglyfilename.mov
mv /mnt/filestore/unprocessed/uglyfilename.mov /mnt/filestore/unprocessed/PrettyName.mov
Obviously, use your own urls and filenames.

Example:
wget -O myFileName.zip http://download.thinkbroadband.com/5MB.zip
This often comes in handing ie I used this just yesterday to get the 1.6.13 JDK from sun and if you use just wget the file name is way to long
Thanks for the heads up!
gelandet. Bevor ich weiter surfe, möchte ich noch einen Gruß von der
wunderschönen Insel Sylt hinterlassen.
The Warlock can be one of the best damage casters in World of Warcraft, but it's also a very complicated class with its damage-over-time (DoT) spells and minions for any occasion. You learn a variety of curses that you will use depending on your situation, and you also gain the ability to send your enemies running away from you in terror.