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 ' $*