misc/compare
author Christian Urban <christian.urban@kcl.ac.uk>
Thu, 02 Nov 2023 13:53:37 +0000
changeset 474 b528d1d3d3c3
parent 386 e2170c91a9f2
permissions -rwxr-xr-x
updated

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

trap "exit" INT

files=${1:-*/pre3}

for sd in $files; do
  cd $sd
  #echo $sd
  echo `tail -n 1 output` > x1
  echo `tail -n 1 output-2` > x2
  cmp -s x1 x2 > /dev/null
  if [ $? -eq 1 ]; then
      echo $sd + "is different"
  fi
  rm x1 x2
  cd ..
  cd ..
done