Last change
on this file since 33066 was 33044, checked in by cpb16, 5 years ago |
Streamlined numpages checking and random selection. Corrected COMPX-RUN-X.sh to download all files (naming error). NEXT: Clean up corpus generation and move on to the next phase
|
-
Property svn:executable
set to
*
|
File size:
384 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ $# != 2 ] ; then
|
---|
4 | echo "Usage: ./COMPX520-RUN-PNG.sh doc_id page" 1>&2
|
---|
5 | exit 1
|
---|
6 | fi
|
---|
7 |
|
---|
8 | doc_id=$1
|
---|
9 | page_num=$2
|
---|
10 |
|
---|
11 | doc_id_file=`echo $doc_id | sed 's/:/+/' | sed 's/\//=/g'`
|
---|
12 |
|
---|
13 |
|
---|
14 | output_file="download-images/$doc_id_file-$page_num.png"
|
---|
15 | echo "Retrieving doc-id-page: $doc_id-$page_num -> $output_file"
|
---|
16 | echo ""
|
---|
17 |
|
---|
18 | ./dapiclient2-extended.pl "$doc_id/$page_num" > "$output_file"
|
---|
19 |
|
---|
20 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.