On 01/04/2008, Colin Strachan <[EMAIL PROTECTED]> wrote:
>  find -name "*.o" -exec rm -f {} \;
>  find -name "*.lo" -exec rm -f {} \;
>  find -name "*.so" -exec rm -f {} \;
>  find -name "*.la" -exec rm -f {} \;
>  find -name "*.a" -exec rm -f {} \;

<shudder>
That'd be incredibly inefficient!
Try
    find  -name  "*.o"  -o  -name "*.lo"
       -o  -name "*.so"  -o  -name "*.la"
       -o  -name "*.a"  | xargs rm

(all on one line, obviously).

xargs is your friend!

Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to