source: other-projects/is-sheet-music-encore/trunk/java-gen-corpus/download_metadata_temp.sh@ 33044

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