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}

ubuntu

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How to Install Microsoft Teams on Ubuntu 20.04

In this tutorial, we will show you how to install Microsoft Teams on Ubuntu 20.04 machine. we can install teams using Debian installer file or by adding microsoft repository.

2 Ways to Upgrade Ubuntu 18.04/18.10 To Ubuntu 19.04 (GUI & Terminal)

This tutorial is going to you 2 ways to upgrade Ubuntu 18.04 and Ubuntu 18.10 to 19.04. The first method uses the graphical update manger and the second method uses command line. Usually you use the graphical update manager to upgrade Ubuntu desktop and use command line to upgrade Ubuntu server, but the command-line method works for desktops too.

How to Install TeamViewer on Ubuntu 20.04

In this tutorial, we will walk you through how to install TeamViewer on Ubuntu 20.04 Desktop through the command line using the TeamViewer .deb package.Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges.

How to Install PgAdmin 4 on Ubuntu 20.04

How to Install PgAdmin 4 on Ubuntu 20.04 - We are going to show you how to install pgAdmin4 on Ubuntu 20.04 LTS in Server Mode as a web application using apache2 and Wsgi module.

2 Ways to Upgrade Ubuntu 18.04 To Ubuntu 20.04

2 Ways to Upgrade Ubuntu 18.04 To Ubuntu 20.04 : using the graphical update manager and using the command line. Normally you use ...