Date: Wed, 29 May 2002 23:16:37 +0300 From: Giorgos Keramidas <keramida@FreeBSD.org> To: freebsd-audit@FreeBSD.org Cc: "Crist J. Clark" <cjc@FreeBSD.org> Subject: Re: Removing perl traces from src/etc/periodic Message-ID: <20020529201635.GB57789@hades.hell.gr> In-Reply-To: <20020529152010.GA13893@hades.hell.gr> References: <20020529152010.GA13893@hades.hell.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-05-29 18:20 +0300, Giorgos Keramidas wrote:
> Index: etc/periodic/security/650.ip6fwlimit
> - ip6fw -a l | grep " log " | perl -n -e \
> - '/^\d+\s+(\d+)/; print if ($1 >= '$IP6FW_LOG_LIMIT')' > ${TMP}
> + ip6fw -a l | grep " log " | \
> + grep '^[[:digit:]]\+[[:space:]]\+[[:digit:]]\+' | \
> + awk -v limit="$IPFW_LOG_LIMIT" \
Of course this should have been awk -v limit="${IP6FW_LOG_LIMIT}".
Chris' comments were the reason for a more careful reading of this
part, and I discovered this sneaky little bug I managed to introduce
while copy/pasting.
Already fixed & merged with Chris' (grep+awk -> awk) changes at:
http://www.FreeBSD.org/~keramida/diff/2002-05-29.periodic,aa
- Giorgos
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020529201635.GB57789>
