From owner-freebsd-bugs Sun Jun 10 6: 2: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 84C0A37B417; Sun, 10 Jun 2001 06:01:58 -0700 (PDT) (envelope-from schweikh@FreeBSD.org) Received: (from schweikh@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5AD1wW61599; Sun, 10 Jun 2001 06:01:58 -0700 (PDT) (envelope-from schweikh) Date: Sun, 10 Jun 2001 06:01:58 -0700 (PDT) From: Message-Id: <200106101301.f5AD1wW61599@freefall.freebsd.org> To: jamie@psi-domain.co.uk, schweikh@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: bin/27205: Listing all users in the passwd file Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: Listing all users in the passwd file State-Changed-From-To: open->closed State-Changed-By: schweikh State-Changed-When: Sun Jun 10 05:58:23 PDT 2001 State-Changed-Why: The system provides the getpwent(3) routine to iterate through the passwd file and also takes care of other sources (like NIS). In a script you'd say s.t. like perl -e 'while(($name)=getpwent){print "$name\n"}' No, we're not making separate executables for such one-liners. There would be just too many :-) http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27205 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message