From owner-freebsd-questions Tue Aug 28 15: 3:51 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 330EE37B406 for ; Tue, 28 Aug 2001 15:03:47 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (patr530-a081.otenet.gr [212.205.215.81]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f7SM3hw27514 for ; Wed, 29 Aug 2001 01:03:44 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f7SKdep12986; Tue, 28 Aug 2001 23:39:40 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 28 Aug 2001 23:39:39 +0300 From: Giorgos Keramidas To: Odhiambo Washington Cc: FBSD-Q Subject: Re: another easy one for the script gurus Message-ID: <20010828233939.A12493@hades.hell.gr> References: <20010828191422.P14463@ns2.wananchi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.2.5i In-Reply-To: <20010828191422.P14463@ns2.wananchi.com>; from wash@wananchi.com on Tue, Aug 28, 2001 at 07:14:22PM +0300 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html 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 From: Odhiambo Washington 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