marking5/tails
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Tue, 06 Aug 2019 00:12:34 +0100
changeset 270 b9eaa5cdec4a
parent 253 ec7a12806c3f
permissions -rwxr-xr-x
updated

#!/bin/sh
###set -e

trap "exit" INT

files=${1:-assignment201810-*}

for sd in $files; do
  cd $sd
  #echo $sd
  marksone=$(( `tail -1 output` ))
  markstwo=$(( `tail -1 output1` ))
  if [ "$marksone" != "$markstwo" ]; then
      echo $sd + "is different"
  fi
  cd ..
done