From: Andrew Lorimer Date: Sat, 28 Jul 2018 10:42:24 +0000 (+1000) Subject: add -i switch to sed command X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/f2a0188869a4ab90bf59d05f0e53a72c041adb23?ds=sidebyside;hp=-c add -i switch to sed command --- f2a0188869a4ab90bf59d05f0e53a72c041adb23 diff --git a/nameget.sh b/nameget.sh index d0bc3e7..ce069f0 100755 --- a/nameget.sh +++ b/nameget.sh @@ -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."