Annotation of 41BSD/cmd/makewhatis.sh, revision 1.1

1.1     ! root        1: rm -f /tmp/whatis /tmp/whatis$$
        !             2: cd /usr/man
        !             3: for i in man1 man2 man3 man4 man5 man6 man7 man8
        !             4: do
        !             5:        cd $i
        !             6:        /usr/lib/getNAME *.*
        !             7:        cd ..
        !             8: done >/tmp/whatis
        !             9: ed - /tmp/whatis <<\!
        !            10: g/\\-/s//-/
        !            11: g/\\\*-/s//-/
        !            12: g/ VAX-11/s///
        !            13: 1,$s/.TH [^ ]* \([^    ]*\).*  \([^-]*\)/\2(\1)        /
        !            14: g/      /s//   /g
        !            15: w /tmp/whatis2
        !            16: q
        !            17: !
        !            18: /usr/ucb/expand -24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100 /tmp/whatis2 | sort >/tmp/whatis$$
        !            19: /usr/ucb/unexpand -a /tmp/whatis$$ > /usr/lib/whatis
        !            20: chmod 644 /usr/lib/whatis
        !            21: rm -f /tmp/whatis /tmp/whatis$$

unix.superglobalmegacorp.com

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