10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
+
+
+
|
# Copyright (c) P.J.Gawthrop 1996
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.7 2000/10/03 18:29:57 peterg
## *** empty log message ***
##
## Revision 1.6 1998/07/17 19:47:35 peterg
## Minor changes
##
## Revision 1.5 1998/07/17 07:50:33 peterg
## Now handles library name
## Returns a status
## 0 if exactly one result
|
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
-
+
|
fi
find $thepath -maxdepth 1 -name $fullname -printf $format;
done |\
tee mtt_junk
fi
# Check exit status and return
hits=`wc mtt_junk | awk '{print $1}'`
hits=`wc mtt_junk | gawk '{print $1}'`
rm -f mtt_junk
if [ $hits = "1" ]; then
exit 0
elif [ $hits = "0" ]; then
exit 1
elif [ $hits > "1" ]; then
|