File:  [Research Unix] / researchv10dc / vol2 / index / tools / gettop
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

M=/usr/vol2/index/tools
j=`basename $1`
if test -s ../$1/$j.ms
then
echo ms $j
$M/topic ../$1/$j.ms|sed 's/^.....//'|sort|awk -f $M/dups.awk >$j.top
else
if test -s ../$1/$j.tex
then
echo tex $j
$M/topic ../$1/$j.tex|sed 's/^.....//'|sort|awk -f $M/dups.awk >$j.top
else
if test -s ../$1/$j.m
then
echo monk $j
$M/topic ../$1/$j.dm|sed 's/^.....//'|sort|awk -f $M/dups.awk >$j.top
else
if test -s $1
then
echo found $1
j=`basename $1 .ms`
$M/topic $1|sed 's/^.....//'|sort|awk -f $M/dups.awk >$j.top
else
if test ../$1/$2.m
then
j=$2
$M/topic ../$1/$j.dm|sed 's/^.....//'|sort|awk -f $M/dups.awk >$j.top
else
echo no file $1
fi
fi
fi
fi
fi

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.