From owner-freebsd-questions Wed Aug 29 15:49: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from forkbomb.martini.nu (forkbomb.martini.nu [204.118.247.250]) by hub.freebsd.org (Postfix) with SMTP id 4E0D737B403 for ; Wed, 29 Aug 2001 15:49:05 -0700 (PDT) (envelope-from reich@forkbomb.martini.nu) Received: (qmail 56479 invoked by uid 1000); 29 Aug 2001 22:48:53 -0000 Date: Wed, 29 Aug 2001 15:48:53 -0700 From: Mahlon Smith To: Odhiambo Washington , freebsd-questions@FreeBSD.ORG Subject: Re: another easy one for the script gurus Message-ID: <20010829154852.C46095@internetcds.com> References: <20010828191422.P14463@ns2.wananchi.com> <20010828233939.A12493@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010828233939.A12493@hades.hell.gr>; from "keramida@ceid.upatras.gr" on Tue, Aug 28, 2001 at 11:39:39PM Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > You want in your Makefile something along the lines of: > > somefilename: > awk -F: '{print $$1,$$2}' < /etc/master.passwd > $@ Or, if you prefer a perl version: somefilename: @perl -we 'print "$$n:$$p\n" while ($$n,$$p) = getpwent()' -- Mahlon Smith System Administrator InternetCDS http://www.internetcds.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message