Merge branch 'master' of charles:/tank/andrew/code/scripts
authorAndrew Lorimer <andrew@lorimer.id.au>
Thu, 16 Aug 2018 11:07:00 +0000 (21:07 +1000)
committerAndrew Lorimer <andrew@lorimer.id.au>
Thu, 16 Aug 2018 11:07:00 +0000 (21:07 +1000)
nameget.sh
index d0bc3e745f3321e83b0a3e7eee5e9429e2acc870..edc1e2e27b89c6ecf1ba30e63a96a741be2ca2a8 100755 (executable)
@@ -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."