1 2 3 4 5 6
#!/bin/sh for sym do gid $sym |egrep '(}[ ]*|:[ ]*#[ ]*define[ ]+)'$sym'|'typedef\>.*[ ]+'$sym done