From owner-freebsd-questions@FreeBSD.ORG Fri Dec 28 00:34:42 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3635C16A41B for ; Fri, 28 Dec 2007 00:34:42 +0000 (UTC) (envelope-from admin2@enabled.com) Received: from typhoon.enabled.com (typhoon.enabled.com [216.218.220.21]) by mx1.freebsd.org (Postfix) with ESMTP id 1CDD813C457 for ; Fri, 28 Dec 2007 00:34:42 +0000 (UTC) (envelope-from admin2@enabled.com) Received: from Macintosh-5.local (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by typhoon.enabled.com (8.14.1/8.14.1) with ESMTP id lBS0YY3O085119 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 27 Dec 2007 16:34:35 -0800 (PST) (envelope-from admin2@enabled.com) Message-ID: <4774448E.5050704@enabled.com> Date: Thu, 27 Dec 2007 16:34:22 -0800 From: Noah User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Giorgos Keramidas References: <47743999.3010908@enabled.com> <20071228002153.GC47064@kobe.laptop> In-Reply-To: <20071228002153.GC47064@kobe.laptop> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: removing ipfw rules X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 00:34:42 -0000 thanks for the response. I was Looking for awk to do some of the parsing like this: /sbin/ipfw list | grep '%IP%' | awk '{ print "ipfw -q delete " $1 }' | sh cheers, Noah