#!/bin/bash all_in_one="test.pdf" indv_files="ind1.pdf ind2.pdf ind3.pdf ind4.pdf" echo "" >> $marksheet echo "CS240 Winter 2013" >> $marksheet echo "Assignment 3 Public Test" >> $marksheet echo "" >> $marksheet echo "This public test checks which files you have submitted." >> $marksheet echo "It does not check the files' contents in any way." >> $marksheet echo "" >> $marksheet if [ -e "${submitdir}/${all_in_one}" ]; then echo "Found the file ${all_in_one}." >> $marksheet echo "" >> $marksheet else echo "We could not find ${all_in_one}." >> $marksheet echo "Searching for individual files ${indv_files}" >> $marksheet echo "" >> $marksheet for f in $indv_files; do if [ -e "${submitdir}/$f" ]; then echo " ** $f found." >> $marksheet else echo " ** $f could not be found!!!" >> $marksheet fi done fi echo "" >> $marksheet #echo "For your record, here are the files in your submission directory." >> $marksheet #echo "This should match what's on MarkUs." >> $marksheet #ls -l ${submitdir} >> $marksheet #echo 'yc2lee, 4' >> $marklist