marking1/compare
author Christian Urban <urbanc@in.tum.de>
Tue, 29 Oct 2019 14:34:51 +0000
changeset 282 ec9773fe1dc0
parent 229 5549016ab10f
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