|
|
1.1 root 1: I=/usr/vol2/index/junk
2: L=/usr/vol2/index/junk1
3: K=/usr/vol2/index/junk2
4: for i in /usr/vol2/[a-z]*
5: do
6: cd $i
7: if test -s $i/*.ind
8: then
9: for j in *.ind
10: do
11: J=`basename $j .ind`
12: wc -l $j|sed 's/[a-z].*//'|tee -a $L >$I
13: if test -s $J.ms
14: then
15: wc -w $J.ms|tee -a $K|sed 's/[a-z].*/3k\/p/' >>$I
16: else
17: if test -s $J.m
18: then
19: wc -w $J.m|tee -a $K|sed 's/[a-z].*/3k\/p/' >>$I
20: else
21: if test -s $J.tex
22: then
23: wc -w $J.tex|tee -a $K|sed 's/[a-z].*/3k\/p/' >>$I
24: else
25: if test -s $J
26: then
27: wc -w $J|tee -a $K|sed 's/[a-z].*/3k\/p/' >>$I
28: else
29: echo $J not found
30: fi
31: fi
32: fi
33: fi
34: echo `basename $i` $J `dc < $I`
35: done
36: fi
37: done|sort -nr +2
38: sed '2,$s/$/+/' $L >$L.x
39: sed -e 's/[a-z].*//' -e '2,$s/$/+/' -e '$s/$/3k\/p/' $K >>$L.x
40: dc <$L.x
41:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.