Date: Wed, 26 Jan 2000 18:36:17 +0200 From: Sheldon Hearn <sheldonh@uunet.co.za> To: John Baldwin <jhb@FreeBSD.ORG> Cc: Andy Farkas <andyf@speednet.com.au>, current@FreeBSD.ORG Subject: Re: y2k problem? naahhh... Message-ID: <26288.948904577@axl.noc.iafrica.com> In-Reply-To: Your message of "Tue, 25 Jan 2000 21:19:16 EST." <200001260219.VAA53639@server.baldwin.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?26288.948904577>