Date: Tue, 28 Sep 1999 16:10:27 +0200 From: Sheldon Hearn <sheldonh@uunet.co.za> To: "Jason" <username@tir.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Dumping Usernames and Real Names Message-ID: <2088.938527827@axl.noc.iafrica.com> In-Reply-To: Your message of "Tue, 28 Sep 1999 09:14:48 -0400." <005801bf09b3$711ec0a0$040aa8c0@jason>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 28 Sep 1999 09:14:48 -0400, "Jason" wrote: > Is there a way I can dump all of the username and their associated > "real name" to a text file? I have looked at finger but their is no > way to do all users even if they are not logged into the system. Are > their any commands Yes: cat /etc/passwd > somefile :-) Or, if _all_ you want is the usernames and real names, then: cut -f 1,5 -d ':,' </etc/passwd > somefile Have fun, Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2088.938527827>