Last change
on this file since 33135 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:
366 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ $# != 1 ] ; then
|
---|
4 | echo "Usage: ./download_metadata_temp.sh doc_id" 1>&2
|
---|
5 | exit 1
|
---|
6 | fi
|
---|
7 |
|
---|
8 | doc_id=$1
|
---|
9 |
|
---|
10 | output_file="metadata_temp.xml"
|
---|
11 | output_cmp_file="compact_metadata_temp.xml"
|
---|
12 | echo "Retrieving metadata: $doc_id -> $output_file"
|
---|
13 | echo ""
|
---|
14 |
|
---|
15 | ../dapiclient2-extended-META.pl "$doc_id" > "$output_cmp_file"
|
---|
16 | xmllint --format $output_cmp_file > $output_file
|
---|
17 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.