Re: find -ing all object files recursively: How to

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reuben D. Budiardja wrote:

How do I find all object files (*.o, *.a, *.so) recursively under the current directory, and pass the result to "nm" so that I can get all the symbol of all those object files?

So the problems are:
1. Find the object files recursively <-- not quite sure how to do this
2. pass the result to "nm". I can't figure this out, here is what I've  tried:




Please try this command:

"find . -name "*.o" -print -exec nm {} \; >> /tmp/nm.out"

You can repeat the above command for "*.a" and "*.so" files.

Best of luck

Srini


-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux