From owner-freebsd-current Wed Jan 26 8:36:33 2000 Delivered-To: freebsd-current@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 2198214CA1; Wed, 26 Jan 2000 08:36:25 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.11 #1) id 12DVQX-0006q1-00; Wed, 26 Jan 2000 18:36:17 +0200 From: Sheldon Hearn To: John Baldwin Cc: Andy Farkas , current@FreeBSD.ORG Subject: Re: y2k problem? naahhh... In-reply-to: Your message of "Tue, 25 Jan 2000 21:19:16 EST." <200001260219.VAA53639@server.baldwin.cx> Date: Wed, 26 Jan 2000 18:36:17 +0200 Message-ID: <26288.948904577@axl.noc.iafrica.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 25 Jan 2000 21:19:16 EST, John Baldwin wrote: > Ok then: > > 'egrep -v '^(---|+++|@@|[+-]#)', geez, am I the only one who knows regex? Are you the only person who doesn't know sed? ;-) My untested guess (since we all seem to be mouthing off the first thing that comes to mind) is sed 's/^\([^:#+@-][^:]*\):[^:]*:/\1:(password):/' This assumes that empty usernames and usernames which do not begin with an alphanumeric character won't appear. Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message