These wget recipes show you how to change the name of the downloaded file using the -O
option.
Save the Download As a Custom Name
wget -O kitty.jpg https://example.com/cat.png
This recipe uses -O
to tell wget to save the downloaded file as kitty.jpg
instead of its original name.
Created by Browserling
These wget recipes were written down by me and my team at Browserling. We use recipes like this every day to get things done and improve our product. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!
Secret message: If you love my wget recipe, then I love you, too! Use coupon code WGETLING to get a discount at my company.