#!/bin/sh # Giulia Hill Dec. 05 ghill@library.berkeley.edu # Jan. 06 - Added line count, error reporting, and optional url param. Janet Garey # Jan. 06 - Added parsing of params and option to use directory or file for input # and functions for modularity. ghill@library #----------- Functions --------------------------------- useFile() { #open and read the input file FILE=$1 OPTIMO=$2 if [ "$OPTIMO" != "" ]; then ALL=`cat $FILE` ERROR=`java xni.XMLGrammarBuilder -a $URL -i $ALL` else exec <$FILE while read LINE do #read ANSWER -s [schema url] -l [log file]" echo "