-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdif_data
More file actions
executable file
·45 lines (45 loc) · 876 Bytes
/
dif_data
File metadata and controls
executable file
·45 lines (45 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! /bin/sh
if [ $# -le 2 ] ; then
echo 'Usage: '`basename $0` ' dir1 dir2 list_of_files :'
echo ' ==> do diff dir1/file dir2/file'
echo ' for each file in list_of_files & for all tiles '
exit
fi
chkmeta=Y
dir0=`pwd`
dir1=$1
dir2=$2
shift ; shift ;
first=1
listnamf=$*
for zz in $listnamf
do
if test $first = 1
then
cd $dir1
listX=`ls $zz.*.data | sed "s/$zz.//g" | sed "s/.data//g"`
cd $dir0
echo ' listX=' $listX
first=0
fi
echo '--> file=' $zz
for xx in $listX
do
echo diff $dir1/$zz.$xx.data $dir2
diff $dir1/$zz.$xx.data $dir2
out=$?
if test $out != 0
then echo 'Diff outp=' $out ' ==> stop'
exit ; fi
if test $chkmeta = 'Y'
then
echo diff $dir1/$zz.$xx.meta $dir2
diff $dir1/$zz.$xx.meta $dir2
out=$?
if test $out != 0
then echo 'Diff outp=' $out ' ==> stop'
exit ; fi
fi
done
done
exit