N
N
nch2021-11-25 00:24:23
linux
nch, 2021-11-25 00:24:23

How to download files by URL list and then rename them?

Hey!

There is a table with thousands of lines (that is, a csv file), where in the first column is the URL of the file to be downloaded, and in the second column is the file name that must be given to the downloaded file.

Can you please tell me the best way to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-11-25
@nch

Take a script with a loop that reads lines in turn and makes wget $1 -O $2. If there are no complex cases such as spaces, special characters and other byaki - this is literally five lines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question