aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/index/see.prep
blob: 33d4c2df956745610445d8612e47796d23ceec42 (plain)
1
2
3
4
5
6
7
8
9
10
#!/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 }
' $*