wget rename with original name

wget rename with original name

I am using the bash script to run something like below

I am using the bash script to run something like below

for i in {1..50}; 
do  
    wget --content-disposition `http://example.com/getfile.php?id={$i}`
done

then I can get the files

abc.mp3
abc.jpg
abc.png
...

but I want to extend the id to the files like

1-abc.mp3
2-abc.jpg
3-abc.png
...

Can I use the wget -o rename the file to {$i}-{$orignalName.orignalExtention}I am using the bash script to run something like below

for i in {1..50}; 
do  
    wget --content-disposition `http://example.com/getfile.php?id={$i}`
done

then I can get the files

abc.mp3
abc.jpg
abc.png
...

but I want to extend the id to the files like

1-abc.mp3
2-abc.jpg
3-abc.png
...

Can I use the wget -o rename the file to {$i}-{$orignalName.orignalExtention}

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

How to setup TensorFlow on Ubuntu

How to setup TensorFlow on Ubuntu - This tutorial will help you set up TensorFlow 1.12 on Ubuntu 16.04 with a GPU using Docker and nvidia-docker.

Launching Ubuntu instances with Multipass

Launching Ubuntu instances with Multipass - Multipass is a great tool you can use to quickly spin up Ubuntu instances for fun, testing, or whatever other reason your creative mind can come up with. I'll show you how to install this utility, and how to use it to launch your own fleet of Ubuntu VMs to do your bidding.

How to Install Docker on Ubuntu?

Learn how to install and use Docker Community Edition (CE) on Ubuntu 18.04. Learn how to install Docker, worked with images and containers, and pushed a modified image to Docker Hub. Docker is an application that simplifies the process of managing application processes in containers. Containers let you run your applications in resource-isolated processes. They’re similar to virtual machines, but containers are more portable, more resource-friendly, and more dependent on the host operating system.