Skip to content

Commit

Permalink
add download-iphone-receipts.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
garybernhardt committed Mar 2, 2011
1 parent f40d4de commit a9d10fd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bin/download-iphone-receipts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/zsh

if [[ $# -ne 4 ]]; then
echo "usage: $0 ip directory start_file_number end_file_number"
exit 1
fi

ip=$1
directory=$2
start=$3
end=$4

for i in {$start..$end}; do
curl -o ${directory}/${i}.jpg "http://${ip}/${directory}/${i}.jpg"
done

0 comments on commit a9d10fd

Please sign in to comment.