Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2001 06:01:58 -0700 (PDT)
From:      <schweikh@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
Message-ID:  <200106101301.f5AD1wW61599@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




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