From owner-freebsd-questions@FreeBSD.ORG Tue Apr 10 23:15:48 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9F15116A400 for ; Tue, 10 Apr 2007 23:15:48 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.freebsd.org (Postfix) with ESMTP id 4301B13C44B for ; Tue, 10 Apr 2007 23:15:48 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.8/8.13.1) with ESMTP id l3ANH2Wt035388; Tue, 10 Apr 2007 16:17:02 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id l3ANH1Tf035383; Tue, 10 Apr 2007 16:17:01 -0700 (PDT) (envelope-from kline) Date: Tue, 10 Apr 2007 16:17:01 -0700 From: Gary Kline To: Rick Olson Message-ID: <20070410231701.GA35246@thought.org> References: <20070306003506.GA12553@thought.org> <6.0.0.22.2.20070306072709.02577448@mail.computinginnovations.com> <20070306165349.GA67829@thought.org> <461AEE3F.2010107@napalmriot.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <461AEE3F.2010107@napalmriot.com> User-Agent: Mutt/1.4.2.2i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing twenty years of service to the Unix community Cc: Gary Kline , FreeBSD Mailing List , Derek Ragona Subject: Re: awk question 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: Tue, 10 Apr 2007 23:15:48 -0000 On Mon, Apr 09, 2007 at 06:54:07PM -0700, Rick Olson wrote: > I'm assuming you've already taken care of this, but to answer your > original question in AWK form, you could have done the following: > > ls -l | awk '$8 == 2006 {system("rm " $9)}' > i'Ll save your snippet to my growing %%% awk file in my ~/HowTo, thankee much. I'm in the first stages on a months-long trial on system tuning. This, before I'd risk publishing anything. So far tho, by upping and lower the NICE prio of various binaries, I have been able to get more than 70% efficient use out of my older servers. ---This *ought* to carry over to my faster machines.... Is tthere a way of using ps -alx | ask to look at nice and if it is non-zero (the default), to reset it to zero? Say that I've reniced xorg and mozilla to -9 for starters and reniced epiphany to -11. Others may have a much lower NICE of 19. I don't know ask that well; is this on better left to something like C? :-) [[[ Something I can do?? :-) ]]] thanks in advance, gary > -- Gary Kline kline@thought.org www.thought.org Public Service Unix