From owner-freebsd-questions@FreeBSD.ORG Wed Apr 25 20:58:10 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 3C21716A40A for ; Wed, 25 Apr 2007 20:58:10 +0000 (UTC) (envelope-from irsla42@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.190]) by mx1.freebsd.org (Postfix) with ESMTP id B493B13C4AE for ; Wed, 25 Apr 2007 20:58:09 +0000 (UTC) (envelope-from irsla42@gmail.com) Received: by mu-out-0910.google.com with SMTP id g7so377435muf for ; Wed, 25 Apr 2007 13:58:08 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HQBBwVP9ulv/I1mnIi2R4xGk/HnF9rr1S1+10g5BmU/BXYEac8LExso6Moxb5JUIIQX+5UVl8E3tFiNiQujhDUQUXmv+ZCsTnEKYDqqYiz7+VP+BP/W6oDf2Jkf/rREhsK4QSRu32UseEuVcc7EeYgj0vwBbf+ZXhI2Iq1s0LsM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EiqgPKFFo/aNCOm9yMuOYVibJLGagd/NJDvDlnhf4Wgx4zjZ0sN4mKUOVWdc+tYHtQ2itcOBRBRng0gL1Pf9XmvIOK8eheHJHt0FMAMdPvxvPT5UZDj3IQmZZYHgt/ULGmk+jK2bz/QAL2Q/29zyiNgXkduIKSb1d7H7saNR6/M= Received: by 10.82.120.14 with SMTP id s14mr1982861buc.1177533105258; Wed, 25 Apr 2007 13:31:45 -0700 (PDT) Received: by 10.82.175.4 with HTTP; Wed, 25 Apr 2007 13:31:45 -0700 (PDT) Message-ID: Date: Wed, 25 Apr 2007 22:31:45 +0200 From: Irsla To: "FreeBSD Mailing List" In-Reply-To: <462F0824.5000107@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070425072914.GA65634@thought.org> <462F0824.5000107@infracaninophile.co.uk> 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 20:58:10 -0000 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 '\;" 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