From owner-freebsd-questions@freebsd.org Sun Sep 10 14:06:24 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 397BAE12C35 for ; Sun, 10 Sep 2017 14:06:24 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from oceanview.tundraware.com (oceanview.tundraware.com [45.55.60.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailman.tundraware.com", Issuer "mailman.tundraware.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F1010756E6 for ; Sun, 10 Sep 2017 14:06:23 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from [192.168.0.2] (ozzie.tundraware.com [75.145.138.73]) (authenticated bits=0) by oceanview.tundraware.com (8.15.2/8.15.2) with ESMTPSA id v8ADllsd059815 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sun, 10 Sep 2017 08:47:47 -0500 (CDT) (envelope-from tundra@tundraware.com) Subject: Re: awk help To: "freebsd-questions@freebsd.org" References: <59B53ED2.3000409@gmail.com> From: Tim Daneliuk Message-ID: Date: Sun, 10 Sep 2017 08:47:41 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <59B53ED2.3000409@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (oceanview.tundraware.com [45.55.60.57]); Sun, 10 Sep 2017 08:47:47 -0500 (CDT) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: v8ADllsd059815 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-0.924, required 1, autolearn=not spam, ALL_TRUSTED -1.00, AWL 0.08, RP_MATCHES_RCVD -0.00) X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Sep 2017 14:06:24 -0000 On 09/10/2017 08:32 AM, Ernie Luzar wrote: > Hello list; > > I wrote the following script to read a hosts file I downloaded > containing known bad sex domain names intended for addition to > /etc/hosts file. This script drops some useless records and builds > a local-zone: record for input to unbound. The file contains 55,000 > records and this script takes 7 minutes to process it. > Ernie - It would be a bit easier if you could provide us with a line or two of sample input, and an example of desired output. ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: http://www.tundraware.com/PGP/