From owner-freebsd-questions Tue Sep 28 7:10:51 1999 Delivered-To: freebsd-questions@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id B27EF14F68 for ; Tue, 28 Sep 1999 07:10:43 -0700 (PDT) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.02 #1) id 11Vxxb-0000Xh-00; Tue, 28 Sep 1999 16:10:27 +0200 From: Sheldon Hearn To: "Jason" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Dumping Usernames and Real Names In-reply-to: Your message of "Tue, 28 Sep 1999 09:14:48 -0400." <005801bf09b3$711ec0a0$040aa8c0@jason> Date: Tue, 28 Sep 1999 16:10:27 +0200 Message-ID: <2088.938527827@axl.noc.iafrica.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 ':,' somefile Have fun, Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message