#!/bin/sh # DownloadAllFilesInApacheDirIndex.sh # Fri May 23 00:32:18 PDT 2008 # Chieh Cheng # http://www.CynosureX.com/ # GNU General Public License (GPL) Version 2, June 1991 scriptName=`basename "$0"` usage () { echo " Usage: ${scriptName} \"url\"" } if [ $# -eq 1 ] then url="$1" printf "Downloading index.html . . . " WebCopy.php "${url}" index.html echo "done." for file in `ApacheDirIndex2FileList.sh index.html` do printf "Downloading ${file} . . . " WebCopy.php "${url}/${file}" "${file}" echo "done." done else usage fi