Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/lib/man/secindex

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
builtin cd $1
for (i in [a-z0-9:]*) {
	sed -n '
	/SH *NAM/,/SH/{
		/SH/d
		s/, *$//
		ty
		:y
		s/ *\\*-.*//
		tx
		s/ *\\\(mi.*//
		tx
		s/, */\
/g
		s/\n\\n/\
/g
		s/$/ '$i'/g
		p
	}
	/SH *DES/q
	d
	:x
	s/ *\\*-.*//
	s/ *\\\(mi.*//
	/^$/d
	s/, */\
/g
	s/\n\n/\
/g
	s/$/ '$i'/g
	p
	q
' $i
echo $i $i
} |sort -u

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.