misc/compare
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 28 Nov 2020 15:37:30 +0000
changeset 376 6cc36d0ef79e
parent 284 9a04eb6a2291
child 386 e2170c91a9f2
permissions -rwxr-xr-x
updated

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

trap "exit" INT

files=${1:-assignment20187-*}

for sd in $files; do
  cd $sd
  #cp output output1
  cmp -s output output1 > /dev/null
  if [ $? -eq 1 ]; then
      echo $sd + "is different"
  fi
  cd ..
done