From: Andrew Lorimer Date: Wed, 4 Jul 2018 11:44:28 +0000 (+1000) Subject: nameget removes successful entries from queue X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/c37f9bb2fee8681ae5502b155653465e941f7b48?ds=inline;hp=-c nameget removes successful entries from queue --- c37f9bb2fee8681ae5502b155653465e941f7b48 diff --git a/nameget.sh b/nameget.sh index e8fbbfa..c0088ab 100755 --- a/nameget.sh +++ b/nameget.sh @@ -25,5 +25,7 @@ fi otherargs=$@ # set aside remaining arguments for passing to wget while read -r url filename tail; do - wget --cut-dirs=100 -r -np -nc --accept -e robots=off -O "$outdir$filename" "$url" $otherargs + if wget --cut-dirs=100 -r -np -nc --accept -e robots=off -O "$outdir$filename" "$url" $otherargs + sed '/$filename/d' $list + fi done < $list