#!/bin/bash # run-qa-set.sh if [ ! -n "$1" ] then echo "Usage: $0 filelist destination" exit fi FILELIST=$1 DESTFILE=$2 cat $FILELIST | while read line; do $JAVA -mx768m -classpath .:/usr/share/java/xerces-j2-2.7.1.jar PredMatchFinal /usr/groups/mphil/qa08/rmrs/ques/q${line}.rmrs /usr/groups/mphil/qa08/rmrs/ans-new/top_docs.${line}.rmrs.gz >> $DESTFILE done;