有没有办法通过 curl 或 wget 命令从页面下载所有 .txt 文件

kos*_*ite 4 wget http curl macos

我的问题在标题中:有没有办法通过 curl 或 wget 命令从页面下载所有 .txt 文件?谢谢

jcb*_*rmu 5

您可以使用 wget with-A来指定文件类型并-r进行递归:

wget -r -A '*.txt' http://url-to-webpage-with-txts/
Run Code Online (Sandbox Code Playgroud)