plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

see.prep (216B)


      1 #!/bin/sh
      2 
      3 awk ' # see.prep
      4 #   Input:  string "\t"  	     string
      5 #   Output: string "\t{see [also]} " string
      6 
      7 BEGIN { FS = "\t" }
      8 $3 ~ /%also/	{ print $1 "\t{see also} " $2; next }
      9 		{ print $1 "\t{see} " $2 }
     10 ' $*