Last Updated: February 25, 2016
·
384
· hvasconcelos

Find a symbol in multiple C++/C libraries (archives or shared libraries)

for i in `ls lib*`; do echo " Looking into $i" ;nm  $i | grep <symbolname>; done

Example:

for i in `ls lib*`; do echo " Looking into $i" ;nm  $i | grep foo ; done