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.



Comments
Paul Kukiel's Gravatar Actually wget can do this with the -O flag

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
# Posted By Paul Kukiel | 5/20/09 12:51 PM
James Brown's Gravatar See, I thought I tried that but it didn't seem to work. Since I was using a bash script for what I was doing, my way worked too.

Thanks for the heads up!
# Posted By James Brown | 5/20/09 1:04 PM
larry's Gravatar I've recently got some doubt as far as ColdFusion. Believe me that if ColdFusion allowed us to do what we needed we would have continued using it ( as we already had the code and had servers setup with Sandboxing etc.), and would have written a blog about the value of it, but it doesn't at the moment and Railo does (visit http://rapid4me.com to get better understanding of what I say) . Adobe ColdFusion is an awesome technology and I am nothing but an Advocate having based my business on it for the last 10 years, but at the same time we have to move with the times with regards to deploying a SaaS model and I do believe Railo is the better technology stack for doing that right now, especially for the issues we are trying to solve. Am I not right?
# Posted By larry | 9/16/09 10:31 AM
Volker Lange's Gravatar Google gerade im Web und bin auf dieser schönen und informativen Homepage
gelandet. Bevor ich weiter surfe, möchte ich noch einen Gruß von der
wunderschönen Insel Sylt hinterlassen.
# Posted By Volker Lange | 2/24/10 5:52 PM
aion kinah's Gravatar Disclaimer | Privacy Policy
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.
# Posted By aion kinah | 4/1/10 4:42 AM