add -i switch to sed command
authorAndrew Lorimer <andrew@lorimer.id.au>
Sat, 28 Jul 2018 10:42:24 +0000 (20:42 +1000)
committerAndrew Lorimer <andrew@lorimer.id.au>
Sat, 28 Jul 2018 10:42:24 +0000 (20:42 +1000)
nameget.sh
index d0bc3e745f3321e83b0a3e7eee5e9429e2acc870..ce069f0c2d32220dafc9612a77fc1ad9784ae232 100755 (executable)
@@ -29,7 +29,7 @@ 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
                logger -s -t $LOGTAG "downloaded $filename"
        else
                logger -s -t $LOGTAG "downloading of $filename from $url failed."