From owner-freebsd-questions@FreeBSD.ORG Wed Apr 25 22:19:33 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 E983C16A482 for ; Wed, 25 Apr 2007 22:19:33 +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 8AC8413C484 for ; Wed, 25 Apr 2007 22:19:33 +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 l3PMLd5B072441; Wed, 25 Apr 2007 15:21:39 -0700 (PDT) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id l3PMLdxu072440; Wed, 25 Apr 2007 15:21:39 -0700 (PDT) (envelope-from kline) Date: Wed, 25 Apr 2007 15:21:39 -0700 From: Gary Kline To: Irsla Message-ID: <20070425222139.GA72351@thought.org> References: <20070425072914.GA65634@thought.org> <462F0824.5000107@infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: FreeBSD Mailing List Subject: Re: first of misc questions.... 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: Wed, 25 Apr 2007 22:19:34 -0000 On Wed, Apr 25, 2007 at 10:31:45PM +0200, Irsla wrote: > Hi, > > On 4/25/07, Matthew Seaman wrote: > > > > find . -type f \( -mtime 6 -o -mtime 29 \) -print0 | xargs -0 vi > > > > what about the -exec option of find ? I always wonder why people don't use > it. > > find . -type f \( -mtime 6 -o -mtime 29 \) -exec vi {} \; > > '{}" <= is the filename find found > you need a ';" to tell find that the command stops here (in case you > want to add more options to find) and the '\" is mandatory eitherwise > your SHELL will interfear. > > btw don't forget the space between the '{}" and the '\;" > Thanks, but I've known this "-exec foo {} \;" for several years. I found it on this -questions list that is about as savvy a list as exists! Thw -mtime N -o -mtime M stuff is uncommon enough, tho, to not be in my bag of tricks. :-) gary > > Regards, > > -- > A: Maybe because some people are too annoyed by top-posting. > Q: Why do I not get an answer to my question(s)? > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > > WAKIM Robert > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org www.thought.org Public Service Unix