This commit is contained in:
xdtianyu
2015-01-27 14:00:21 +08:00
parent 1afd98180e
commit 6b347aa5b9
10 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/bash
# Convert nginx autoindex url to download link.
if [ -z "$1" ];then
echo "Error param."
exit 0
fi
URL=$1
for uri in $(curl -k -s $URL |grep '<a href' |grep -o "\".*\"");do
echo "$URL${uri//\"}"
done