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

Reply via email to