#!/bin/bash if [ $# != 1 ] ; then echo "Usage: ./COMPX520-RUN-META.sh doc_id" 1>&2 exit 1 fi doc_id=$1 doc_id_file=`echo $doc_id | sed 's/:/+/' | sed 's/\//=/g'` output_file="java-gen-corpus/download-meta/$doc_id_file-META.txt" echo "Retrieving doc-id-page: $doc_id -> $output_file" echo "" ./dapiclient2-extended-META.pl "$doc_id" > "$output_file"