From: Andrew Lorimer Date: Thu, 16 Aug 2018 11:07:00 +0000 (+1000) Subject: Merge branch 'master' of charles:/tank/andrew/code/scripts X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/0b35ed907b62791261669947134373a44b6874da?hp=42ed14b89302bb02ebdb0e582fa681442a1d9ad8 Merge branch 'master' of charles:/tank/andrew/code/scripts --- diff --git a/nameget.sh b/nameget.sh index d0bc3e7..edc1e2e 100755 --- a/nameget.sh +++ b/nameget.sh @@ -29,7 +29,8 @@ logger -s -t $LOGTAG "starting downloading files in $list" while read -r url filename; do if wget --cut-dirs=100 -np -e robots=off -O $outdir$filename $otherargs $url; then - sed '/$filename/d' $list + sed -i "/$filename/d" $list + echo $filename logger -s -t $LOGTAG "downloaded $filename" else logger -s -t $LOGTAG "downloading of $filename from $url failed."