shithub: 9intro

ref: a351bcdccdf5a4273bc8dc3360a48fbb8b8aa9ea
dir: /idx/see.prep/

View raw version
#!/bin/rc
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 }
' $*