Re:Introduction to sed
by sequoia on Friday October 07, 2011 @01:40PM
(#3084991)
perhaps https://en.wikipedia.org/wiki/Ctags
[ Parent
| on HN ]
In particular, `ctags -x` generates human-readable tabular output (instead of the normal output designed for parsing by text editors) and annotates each symbol to indicate whether it's a variable, function, macro, etc.
If you want to get a list of all function names from file "foo.c", you could do something like:
ctags -x foo.c | awk '$2=="function"{print $1}'