From: Andrew Lorimer Date: Sat, 28 Jul 2018 10:50:47 +0000 (+1000) Subject: fix quotes in sed command X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/5116c02c21da92b4fb0927c9c1c348cf7542feb9?hp=-c fix quotes in sed command replaced single quotes with double quotes, as single quotes are interpreted literallly --- 5116c02c21da92b4fb0927c9c1c348cf7542feb9 diff --git a/nameget.sh b/nameget.sh index ce069f0..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 -i '/$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."