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

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

 



On 17:02 05 Nov 2003, Reuben D. Budiardja <techlist@xxxxxxxxxxxxxxxxxxxx> wrote:
| On Wednesday 05 November 2003 08:49 am, Juan Martinez wrote:
| > find . -iname \*.o -o -iname \*.a -o -iname \*.so -exec nm -o {} \;
| 
| Thanks for all who replied. This works.

You might want to check more closely. It shouldn't. As stated it will nm
all the .so files, but not any .a or .o files. You need some parentheses:

    find . \( -iname \*.o -o -iname \*.a -o -iname \*.so \) -exec nm -o {} \;

because "and" binds tighter than "or".

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Steinbach's Law: 2 is not equal to 3 -- even for large values of 2.


-- 
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