From c37f9bb2fee8681ae5502b155653465e941f7b48 Mon Sep 17 00:00:00 2001 From: Andrew Lorimer Date: Wed, 4 Jul 2018 21:44:28 +1000 Subject: [PATCH] nameget removes successful entries from queue --- nameget.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.43.2