我想使用 wget 以便我的文件采用我想要的名称。例如,如果我这样做wget -r http://www.x.com/y/z,主文件将被命名z,即使它实际上是index.html.
我检查了-Owget的选项,但根据手册:
‘-O file’
‘--output-document=file’
The documents will not be written to the appropriate files, but all will be concatenated together and written to file. ...
似乎所有文件都将被连接并写入所需名称的文件。我只想连接主文件(而不是递归产生的任何文件)。我怎样才能做到这一点?