Date: Tue, 28 Aug 2001 23:39:39 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Odhiambo Washington <wash@wananchi.com> Cc: FBSD-Q <freebsd-questions@FreeBSD.ORG> Subject: Re: another easy one for the script gurus Message-ID: <20010828233939.A12493@hades.hell.gr> In-Reply-To: <20010828191422.P14463@ns2.wananchi.com>; from wash@wananchi.com on Tue, Aug 28, 2001 at 07:14:22PM %2B0300 References: <20010828191422.P14463@ns2.wananchi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Odhiambo Washington <wash@wananchi.com> Subject: another easy one for the script gurus Date: Tue, Aug 28, 2001 at 07:14:22PM +0300 > This time I need help in extracting usernames and passwords from the file > /etc/master.passwd. >=20 > What I have in mind, if someone can help me, is a Makefile type of script. > I want to place it somewhere and all I want to do is to=20 >=20 > cd /path/to/Makefile > make >=20 > ..and I should end up getting _somefilename_ which contains two columns: >=20 > username1:encryptedpasswd > username2:encryptedpasswd >=20 > thanking you all in advance. You want in your Makefile something along the lines of: somefilename: awk -F: '{print $$1,$$2}' < /etc/master.passwd > $@ -giorgos 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?20010828233939.A12493>