bash[script]-使用wget下载网站
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了bash[script]-使用wget下载网站相关的知识,希望对你有一定的参考价值。
<ol><li>save as filename.sh</li><li>chmod u+x filename.sh</li><li>usage : ./filename.sh"url"</li></ol>
#! /bin/bash # use this script for downloading websites using 'wget' utility # replace URL field with the URL to be downloaded URL="$1" wget -Nrkpl 0 $URL # wget flags and their functions # -r = recursive: follows the links # -k = changes links adresses to their local file adress # -p = downloads images # -l = recursion level. 0 for infinite. exit
以上是关于bash[script]-使用wget下载网站的主要内容,如果未能解决你的问题,请参考以下文章