Greetings. I am a Linux newbie and to this forum.So please go easy on me.
I have txt files in which urls are placed per line. I can download them using wget -i option. But since the links are random, wget puts default names, but after downloading i cant make head or tails of the files. but the urls are of lets say a show's video serially, i.e url1 is for episode1 and so on. since i have many urls, its a pain to rename each using wget's "-o" option. Since i dont know pretty much nothing about bash scripting, could anyone help me? I need wget to read episode 1's url, rename it to show_ep1.
eg. wget -o 'show-ep1'
https://show/ep1.mp4 And so on.
Suggestions and modification of this question to support this forums guidelines(if necessary are appericiated)