Re: (FWD) Re: cvs commit: src/etc/periodic/daily 200.backup-passwd

2000-01-27 Thread Sheldon Hearn
On Thu, 27 Jan 2000 04:11:38 PST, "Rodney W. Grimes" wrote: > > sed 's/^\([ +-][^+-][^:]*\):[^:]*:/\1:(password):/' > > IMNSO sed is the wrong tool here, No arguments from me, since my awk skills are limited. However, I'll point out that sed is doing a decent job without turning into an

Re: (FWD) Re: cvs commit: src/etc/periodic/daily 200.backup-passwd

2000-01-27 Thread Rodney W. Grimes
> > > On Thu, 27 Jan 2000 00:23:23 PST, "David O'Brien" wrote: > > > I think what you really want is: > > > > sed 's/^\([^:#@+-]*\):[^:]*:/\1:(password):/' > > Eeek, I don't know why I sent you that. It should have been: > > sed 's/^\([ +-][^+-][^:]*\):[^:]*:/\1:(password)

Re: (FWD) Re: cvs commit: src/etc/periodic/daily 200.backup-passwd

2000-01-27 Thread Sheldon Hearn
On Thu, 27 Jan 2000 00:23:23 PST, "David O'Brien" wrote: > I think what you really want is: > > sed 's/^\([^:#@+-]*\):[^:]*:/\1:(password):/' Eeek, I don't know why I sent you that. It should have been: sed 's/^\([ +-][^+-][^:]*\):[^:]*:/\1:(password):/' Sorry about t