Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Aug 2001 15:48:53 -0700
From:      Mahlon Smith <reich@internetcds.com>
To:        Odhiambo Washington <wash@wananchi.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: another easy one for the script gurus
Message-ID:  <20010829154852.C46095@internetcds.com>
In-Reply-To: <20010828233939.A12493@hades.hell.gr>; from "keramida@ceid.upatras.gr" on Tue, Aug 28, 2001 at 11:39:39PM
References:  <20010828191422.P14463@ns2.wananchi.com> <20010828233939.A12493@hades.hell.gr>

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




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