/ Published in: Bash

<ol><li>save as filename.sh</li><li>chmod u+x filename.sh</li><li>usage : ./filename.sh\"url\"</li></ol>
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#! /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
Comments
