I have a file called urls.txt
.
https://website.tld/static/main_01.js
https://website.tld/static/main_02.js
https://website.tld/static/main_03.js
....
I want every .js
file source inside allsource.txt
Details:
open this url in browser https://website.tld/static/main_01.js
some programming
open this url in browser https://website.tld/static/main_01.js
some more programming
open this url in browser https://website.tld/static/main_01.js
some more more programming
so I want this output inside allsource.txt
some programming
some more programming
some more more programming
CodePudding user response:
for i in $(cat urls.txt); do (curl -sk $i >> allsource.txt); done
CodePudding user response:
I think you are asking to download all the javascript files listed in urls.txt
and concatenate it in a single file. This wget
command should work:
wget -i urls.txt -O all.js