misc/compare
author Christian Urban <christian.urban@kcl.ac.uk>
Sat, 11 Mar 2023 23:22:05 +0000
changeset 468 0587ef444547
parent 386 e2170c91a9f2
permissions -rwxr-xr-x
updated and cleaned

#!/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