From f2a0188869a4ab90bf59d05f0e53a72c041adb23 Mon Sep 17 00:00:00 2001 From: Andrew Lorimer Date: Sat, 28 Jul 2018 20:42:24 +1000 Subject: [PATCH] add -i switch to sed command --- nameget.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." -- 2.47.0