From owner-freebsd-current Thu Jan 27 4:27: 1 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 1FAF91558E; Thu, 27 Jan 2000 04:26:56 -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.13 #1) id 12Do0Q-000PKv-00; Thu, 27 Jan 2000 14:26:34 +0200 From: Sheldon Hearn To: "Rodney W. Grimes" Cc: obrien@FreeBSD.ORG, current@FreeBSD.ORG Subject: Re: (FWD) Re: cvs commit: src/etc/periodic/daily 200.backup-passwd In-reply-to: Your message of "Thu, 27 Jan 2000 04:11:38 PST." <200001271211.EAA76788@gndrsh.dnsmgr.net> Date: Thu, 27 Jan 2000 14:26:33 +0200 Message-ID: <97396.948975993@axl.noc.iafrica.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 invocation mess. The awk program you sent is much longer. Oh, and it produces absolutely no output whatsoever over here. :-) Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message