Article 545RA [SOLVED] to download files randomly from website

[SOLVED] to download files randomly from website

by
TashiDuks
from LinuxQuestions.org on (#545RA)
how to download files randomly from website (http://localhost/log/) using bash script.

the url contains 100 files like shown below:

http://localhost/log/log01.log

http://localhost/log/log02.log

... log100.log

For example; if user enters the number 4, then the script should download 4 files randomly.

during download process the script should output the download result as shown below:

Downloading [filename], with the file name [filename and extension], with a file size of [file size and metric]

Thanks in advancelatest?d=yIl2AUoC8zA latest?i=cjKLY-eHquE:zAdS5LuMgwY:F7zBnMy latest?i=cjKLY-eHquE:zAdS5LuMgwY:V_sGLiP latest?d=qj6IDK7rITs latest?i=cjKLY-eHquE:zAdS5LuMgwY:gIN9vFwcjKLY-eHquE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments