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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to