I need wget to save to a different folder, different filename, and same extension, but I do not have the filename before downloading.
For example, let's say I have:
and I need to download it to an id, "fj39ejd" in the folder
What is the best way to go about saving it to:
/path/to/downloads/fj39ejd.[extension it had before downloading]
Any advice on how I can achieve this?