Andrew's git
/
scripts.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
add -i switch to sed command
author
Andrew Lorimer
<andrew@lorimer.id.au>
Sat, 28 Jul 2018 10:42:24 +0000
(20:42 +1000)
committer
Andrew Lorimer
<andrew@lorimer.id.au>
Sat, 28 Jul 2018 10:42:24 +0000
(20:42 +1000)
nameget.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
9ad98da
)
diff --git
a/nameget.sh
b/nameget.sh
index d0bc3e745f3321e83b0a3e7eee5e9429e2acc870..ce069f0c2d32220dafc9612a77fc1ad9784ae232 100755
(executable)
--- 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."