Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jun 2003 19:17:30 -0700
From:      Joshua Oreman <oremanj@webserver.get-linux.org>
To:        "Kevin Kinsey, DaleCo, S.P." <kdk@daleco.biz>
Cc:        questions@freebsd.org
Subject:   Re: Obvious 'Doh!'?  find vs. diff....
Message-ID:  <20030627021729.GA32791@webserver.get-linux.org>
In-Reply-To: <001901c33c50$563d8b30$3f41d5cc@nitanjared>
References:  <001901c33c50$563d8b30$3f41d5cc@nitanjared>

next in thread | previous in thread | raw e-mail | index | archive | help
Easy on the send button!

On Thu, Jun 26, 2003 at 09:03:41PM -0500 or thereabouts, Kevin Kinsey, DaleCo, S.P. wrote:
> <admin@ezra> [/usr/src] [19:57]
> #find /  -name "GENERIC" -print
> /usr/src/sys/alpha/conf/GENERIC
> /usr/src/sys/i386/conf/GENERIC
> /usr/src/sys/i386/GENERIC
> /usr/src/sys/pc98/conf/GENERIC
> /usr/obj/usr/src/sys/GENERIC
> 
> <admin@ezra> [/usr/src] [19:57]
> #diff /usr/obj/usr/src/sys/GENERIC /usr/src/sys/i386/GENERIC
> diff: /usr/obj/usr/src/sys/GENERIC/GENERIC: No such file or directory

/usr/obj/usr/src/sys/GENERIC is probably a directory. The `find' command you want
is:
#find /usr/src /usr/obj -name GENERIC -type f -print

`-type f' restricts it to files.

-- Josh

> 
> ???
> 
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030627021729.GA32791>