find error
Mark Widdicombe
mwiddicombe at shoprite.co.za
Wed Oct 6 09:38:12 UTC 2010
From: ubuntu-users-bounces at lists.ubuntu.com [ubuntu-users-bounces at lists.ubuntu.com] On Behalf Of Jordon Bedwell [jordon at envygeeks.com]
Sent: 06 October 2010 11:24 AM
On Wed, 2010-10-06 at 14:49 +0530, Tapas Mishra wrote:
> On Wed, Oct 6, 2010 at 1:39 PM, Loïc Grenié <loic.grenie at gmail.com> wrote:
> > 2010/10/6 Tapas Mishra <mightydreams at gmail.com>:
> >> I used find in following fashion to exclude find to search in directory /opt
> >>
> >> find / -name java -prune -o -name /opt -print
> >
> > What you seem to mean is:
> >
> > find /opt -name java
> >
> > (search /opt for files (and directories) named java).
> >
> > Hope this helps,
> >
> No I want to search for java in entire root but excluding /opt
>
>find / -name java -prune -o -path '/opt' -print
or: find / -name java -path '/opt' -prune -o -print
Disclaimer
http://www.shopriteholdings.co.za/pages/1019812640/disclaimer/E-mail-Disclaimer.asp
More information about the ubuntu-users
mailing list