Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Nov 2001 04:43:25 +0200
From:      Giorgos Keramidas <charon@labs.gr>
To:        cjclark@alum.mit.edu
Cc:        John Baldwin <jhb@FreeBSD.ORG>, Robert Watson <rwatson@FreeBSD.ORG>, current@FreeBSD.ORG, Alexander Leidinger <Alexander@Leidinger.net>
Subject:   Re: daily run output & passwd diff
Message-ID:  <20011114024325.GA7072@hades.hell.gr>
In-Reply-To: <20011113153102.B61915@blossom.cjclark.org>
References:  <Pine.NEB.3.96L.1011113172509.55075A-100000@fledge.watson.org> <XFMail.011113143148.jhb@FreeBSD.org> <20011113153102.B61915@blossom.cjclark.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2001-11-13 15:31:02, Crist J. Clark wrote:
>
>                 echo "$host passwd diffs:"
> -               diff $bak/master.passwd.bak /etc/master.passwd |\
> -                       sed 's/^\([<>] [^#][^:]*\):[^:]*:/\1:(password):/'
> +               diff -I '^#' $bak/master.passwd.bak /etc/master.passwd |\
> +                       sed 's/^\([<>] [^:]*\):[^:]*:/\1:(password):/'
>                 mv $bak/master.passwd.bak $bak/master.passwd.bak2
>                 cp -p /etc/master.passwd $bak/master.passwd.bak || rc=3
>             fi

This version looks great.  I'm not sure if you need to ignore lines
that have whitespace before the initial '#' character, but this one is
already good enough :)


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?20011114024325.GA7072>