author | Christian Urban <christian.urban@kcl.ac.uk> |
Mon, 08 Nov 2021 18:57:50 +0000 | |
changeset 413 | 9c80f411faa7 |
parent 386 | e2170c91a9f2 |
permissions | -rwxr-xr-x |
229 | 1 |
#!/bin/sh |
2 |
###set -e |
|
3 |
||
4 |
trap "exit" INT |
|
5 |
||
386 | 6 |
files=${1:-*/pre3} |
229 | 7 |
|
8 |
for sd in $files; do |
|
9 |
cd $sd |
|
386 | 10 |
#echo $sd |
11 |
echo `tail -n 1 output` > x1 |
|
12 |
echo `tail -n 1 output-2` > x2 |
|
13 |
cmp -s x1 x2 > /dev/null |
|
229 | 14 |
if [ $? -eq 1 ]; then |
15 |
echo $sd + "is different" |
|
16 |
fi |
|
386 | 17 |
rm x1 x2 |
18 |
cd .. |
|
229 | 19 |
cd .. |
20 |
done |
|
21 |
||
22 |