source: other-projects/is-sheet-music-encore/trunk/COMPX520-DOWNLOADER-PNG-10PAGES.sh@ 33060

Last change on this file since 33060 was 33060, checked in by cpb16, 5 years ago

Modified ..PNG-10PAGES.sh to display a item download counter

  • Property svn:executable set to *
File size: 425 bytes
Line 
1#!/bin/bash
2if [ $# != 1 ] ; then
3 echo "Usage: ./COMPX520-RUN-PNG.sh <filename>" 1>&2
4 exit 1
5fi
6
7file_name=$1
8page_num=0
9count=0
10
11for id in `cat $file_name` ; do
12 for page_num in {1..10}
13 do
14 echo "id: $id page_num: $page_num"
15 ./COMPX520-RUN-PNG.sh $id $page_num
16 page_num=$((page_num+1))
17 done
18 echo ""
19 count=$((count+1))
20 echo "PNG's downloaded:" + $count
21 echo ""
22 sleep 2
23done
Note: See TracBrowser for help on using the repository browser.