On Wed, 2003-11-05 at 08:34, Reuben D. Budiardja wrote: > Hi all, > I need some help here. I read manual, but am still not quite good with "find". > > 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: > > [rb@dev petsc-2.1.6]$ find -iname libpetscgsolver.a > ./lib/libg/linux-gnu/libpetscgsolver.a > > [rb@dev petsc-2.1.6]$ find -iname libpetscgsolver.a | nm -o > nm: a.out: No such file or directory Reuben, This should do the trick: find . -iname \*.o -o -iname \*.a -o -iname \*.so -exec nm -o {} \; -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list