Andrew's git
/
scripts.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
fix quotes in sed command
author
Andrew Lorimer
<andrew@charles.cortex>
Sat, 28 Jul 2018 10:50:47 +0000
(20:50 +1000)
committer
Andrew Lorimer
<andrew@charles.cortex>
Sat, 28 Jul 2018 10:50:47 +0000
(20:50 +1000)
replaced single quotes with double quotes, as single quotes are interpreted literallly
nameget.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
f2a0188
)
diff --git
a/nameget.sh
b/nameget.sh
index ce069f0c2d32220dafc9612a77fc1ad9784ae232..edc1e2e27b89c6ecf1ba30e63a96a741be2ca2a8 100755
(executable)
--- 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."