我有一个名为urls.txt
的文件。
https://website.tld/static/main_01.js
https://website.tld/static/main_02.js
https://website.tld/static/main_03.js
....
我想要每个.js
文件源在allsource.txt
内
详细数据:
在浏览器https://website.tld/static/main_01.js
中打开此url
some programming
在浏览器https://website.tld/static/main_01.js
中打开此url
some more programming
在浏览器https://website.tld/static/main_01.js
中打开此url
some more more programming
所以我希望这个输出在allsource.txt
中
some programming
some more programming
some more more programming
2条答案
按热度按时间uplii1fm1#
我想你是想下载
urls.txt
中列出的所有javascript文件,并将它们连接到一个文件中。m2xkgtsf2#
for i in $(cat urls.txt); do (curl -sk $i >> allsource.txt); done