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

#!/usr/bin/rc
# creates the index used by lookman
>index
for(i in ../man[1-9]*/*.[1-9]*)
	tr 'A-Z 	' 'a-z\012\012' <$i|	# lower-case & one word per line
	gre -v '^[.'']'|			# delete troff controls
	tr -dc 'a-z\012'|			# delete funny chars
	sort -u|				# remove duplicates
	comm -23 - junkwords|			# delete noise
	sed 's@$@	'$i'@' >>index		# stick file name on end of line
sort -o index index

unix.superglobalmegacorp.com

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