Date: Sun, 02 Nov 1997 01:02:51 +0000 From: Brian Somers <brian@awfulhak.org> To: njs3@doc.ic.ac.uk (Niall Smart) Cc: Brandon Gillespie <brandon@roguetrader.com>, freebsd-hackers@FreeBSD.ORG Subject: Re: Suggested addition to /etc/security Message-ID: <199711020102.BAA20376@awfulhak.demon.co.uk> In-Reply-To: Your message of "Sat, 01 Nov 1997 18:04:39 GMT." <E0xRhuZ-0004BT-00@oak67.doc.ic.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Nov 1, 10:58am, Brandon Gillespie wrote: > > > > find / -nouser -nogroup > > > Shouldn't this be "find / -nouser -o -nogroup -print"? > > Yeah, or even better: > > > > files=`find / -nouser -o -nogroup -print` > > ls -ldF $files > > > > (this looks better than find / -nouser -o -nogroup -exec ls -ldF {} \;) > > Looks better? They should produce identical output. "find / -nouser -o > -nogroup -print | xargs -n 30" is more efficient btw :)) however > using -exec with find is othe only one that works with filenames with > embedded spaces. Check the -print0 option on find. That, and the -0 option to xargs makes it a far better choice than -exec. BTW, why the -n 30 to xargs ? > > Niall > , -- Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <bri@OpenBSD.org> <http://www.Awfulhak.org> Don't _EVER_ lose your sense of humour....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711020102.BAA20376>