From owner-freebsd-current@FreeBSD.ORG Thu Sep 7 14:58:13 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DA3C16A4EE; Thu, 7 Sep 2006 14:58:13 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9B6443D7D; Thu, 7 Sep 2006 14:58:04 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k87Evr42084867; Thu, 7 Sep 2006 10:57:53 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Thu, 7 Sep 2006 10:57:43 -0400 User-Agent: KMail/1.9.1 References: <200608281545.k7SFjn6l063922@lurza.secnetix.de> <44FF71AD.7060508@FreeBSD.org> <44FF72B9.7000201@elischer.org> In-Reply-To: <44FF72B9.7000201@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609071057.44515.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Thu, 07 Sep 2006 10:57:54 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/1816/Wed Sep 6 22:29:36 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Doug Barton , Julian Elischer , Garance A Drosehn , Peter Jeremy Subject: Re: Attempt #3, adding a new command 'sfilter' X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Sep 2006 14:58:13 -0000 On Wednesday 06 September 2006 21:15, Julian Elischer wrote: > Maxim Sobolev wrote: > > > Why not just write simple 5-line script in your favorite scripting > > language (perl, python, ruby etc) that does just this and forget about > > it? I don't think performance is really a concern here since the most > > time this program will spend waiting for the I/O anyway, so that doing > > it in C makes little or no sense. > > > > IMHO this is one of the reasons we do have all those lightweight > > languages around - to avoid having separate utility and/or command > > line option for each and every particular situation. > > > > -Maxim > > > > perl is not lightweight to install on a machine. > have you seen how much crap gets installed when you add perl? > > lightweight is adding 100 instructions or so to 'date'. > or adding the strftime instruction to awk (as it is in gawk) Why not install the gawk port on the machines you need this on rather than perl and use gawk then? It doesn't look to be that heavyweight of a port. -- John Baldwin