From owner-freebsd-hackers Sat Nov 1 17:25:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA19158 for hackers-outgoing; Sat, 1 Nov 1997 17:25:24 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA19153 for ; Sat, 1 Nov 1997 17:25:19 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.5) with ESMTP id BAA20376; Sun, 2 Nov 1997 01:02:51 GMT Message-Id: <199711020102.BAA20376@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: njs3@doc.ic.ac.uk (Niall Smart) cc: Brandon Gillespie , freebsd-hackers@FreeBSD.ORG Subject: Re: Suggested addition to /etc/security In-reply-to: Your message of "Sat, 01 Nov 1997 18:04:39 GMT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 02 Nov 1997 01:02:51 +0000 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > 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 , , Don't _EVER_ lose your sense of humour....