scripts

misc scripts and tools
git clone git://git.2f30.org/scripts.git
Log | Files | Refs

commit a83e2736042cb5bfad26a94a25e355546086b6ce
parent 29178da4f8d23e4dd82f03bfc826463e4839e368
Author: sin <sin@2f30.org>
Date:   Tue Nov 26 21:14:45 +0000

Rename line to f

Diffstat:
destiny-get | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/destiny-get b/destiny-get @@ -3,8 +3,8 @@ listing=$(mktemp) ssh destiny "ls torrents" > $listing idx=0 -while read line; do - echo "$idx: $line" +while read f; do + echo "$idx: $f" ((idx=idx+1)) done < $listing @@ -26,14 +26,14 @@ while :; do done idx=0 -while read line; do +while read f; do if [ $index -eq $idx ]; then break fi ((idx=idx+1)) done < $listing -escapedline=$(echo ${line// /\\ }) -rsync --partial --progress -av -e ssh destiny:"torrents/$escapedline" torrents +escapedfile=$(echo ${f// /\\ }) +rsync --partial --progress -av -e ssh destiny:"torrents/$escapedfile" torrents rm $listing