Plan 9 from User Space's /usr/local/plan9/src/cmd/index/see.prep

#!/bin/sh

awk ' # see.prep
#   Input:  string "\t"  	     string
#   Output: string "\t{see [also]} " string

BEGIN { FS = "\t" }
$3 ~ /%also/	{ print $1 "\t{see also} " $2; next }
		{ print $1 "\t{see} " $2 }
' $*

Space Glenda

Copyright © 2005 Lucent Technologies, Russ Cox, MIT.
See license for details.