Andrew's git
/
scripts.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'master' of charles:/tank/andrew/code/scripts
author
Andrew Lorimer
<andrew@lorimer.id.au>
Thu, 16 Aug 2018 11:07:00 +0000
(21:07 +1000)
committer
Andrew Lorimer
<andrew@lorimer.id.au>
Thu, 16 Aug 2018 11:07:00 +0000
(21:07 +1000)
nameget.sh
patch
|
blob
|
history
raw
(from parent 1:
42ed14b
)
diff --git
a/nameget.sh
b/nameget.sh
index d0bc3e745f3321e83b0a3e7eee5e9429e2acc870..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 '/$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."