#!/bin/sh
#
echo -n .
printf "database one-doc, input file hello.in:\n" > hw03test.OUT
./search-engine one-doc/one-doc.db < one-doc/hello.in >> hw03test.OUT 2>&1
printf "\n" >> hw03test.OUT

echo -n .
printf "database one-doc, input file hello-goodbye.in:\n" >> hw03test.OUT
./search-engine one-doc/one-doc.db < one-doc/hello-goodbye.in >> hw03test.OUT 2>&1
printf "\n" >> hw03test.OUT

echo -n .
printf "database one-doc, input file five-words.in:\n" >> hw03test.OUT
./search-engine one-doc/one-doc.db < one-doc/five-words.in >> hw03test.OUT 2>&1
printf "\n" >> hw03test.OUT

echo -n .
printf "database hello-goodbye, input file over.in:\n" >> hw03test.OUT
./search-engine hello-goodbye/hello-goodbye.db < hello-goodbye/over.in >> hw03test.OUT 2>&1
printf "\n" >> hw03test.OUT

echo -n .
printf "database hello-goodbye, input file stop.in:\n" >> hw03test.OUT
./search-engine hello-goodbye/hello-goodbye.db < hello-goodbye/stop.in >> hw03test.OUT 2>&1
printf "\n" >> hw03test.OUT

echo -n .
printf "database hello-goodbye, input file world.in:\n" >> hw03test.OUT
./search-engine hello-goodbye/hello-goodbye.db < hello-goodbye/world.in >> hw03test.OUT 2>&1
printf "\n" >> hw03test.OUT

echo -n .
printf "database hello-goodbye, input file hello.in:\n" >> hw03test.OUT
./search-engine hello-goodbye/hello-goodbye.db < hello-goodbye/hello.in >> hw03test.OUT 2>&1
printf "\n" >> hw03test.OUT

echo -n .
printf "database hello-goodbye, input file world-over-moon-short.in:\n" >> hw03test.OUT
./search-engine hello-goodbye/hello-goodbye.db < hello-goodbye/world-over-moon-short.in >> hw03test.OUT 2>&1
printf "\n" >> hw03test.OUT

echo -n .
printf "database hello-goodbye, input file goodbye-world.in:\n" >> hw03test.OUT
./search-engine hello-goodbye/hello-goodbye.db < hello-goodbye/goodbye-world.in >> hw03test.OUT 2>&1
printf "\n" >> hw03test.OUT

echo -n .
printf "database etext91, input file boojum.in:\n" >> hw03test.OUT
./search-engine etext91/etext91.db < etext91/boojum.in >> hw03test.OUT 2>&1
printf "\n" >> hw03test.OUT

echo -n .
printf "database etext91, input file occasional.in:\n" >> hw03test.OUT
./search-engine etext91/etext91.db < etext91/occasional.in >> hw03test.OUT 2>&1
printf "\n" >> hw03test.OUT

echo -n .
printf "database etext91, input file two-words.in:\n" >> hw03test.OUT
./search-engine etext91/etext91.db < etext91/two-words.in >> hw03test.OUT 2>&1
printf "\n" >> hw03test.OUT

printf "\n" 
