From owner-freebsd-newbies Thu Apr 29 22:22:50 1999 Delivered-To: freebsd-newbies@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id ECB32152D7 for ; Thu, 29 Apr 1999 22:22:48 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id BAA08171; Fri, 30 Apr 1999 01:23:00 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199904300523.BAA08171@cc942873-a.ewndsr1.nj.home.com> Subject: Re: User Information In-Reply-To: <3727D3A8.3B3B0D7B@iwinet.com> from Greg Eadie at "Apr 28, 99 11:36:09 pm" To: ggreg@iwinet.com (Greg Eadie) Date: Fri, 30 Apr 1999 01:23:00 -0400 (EDT) Cc: freebsd-newbies@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Greg Eadie wrote, > Hello everyone. > > Can anyone tell me the easiest way to get a print out of all the users > (with real name also) who are on my FreeBSD mail server? Either load /etc/passwd into your favorite editor and go, or maybe use something like this simple shell script, #!/bin/sh IFS=: while read LINE; do set -f -- $LINE echo "$1 $5" done < /etc/passwd That should print it; not too pretty, but it works. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message