From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GSyqU-0006LP-1f for garchives@archives.gentoo.org; Thu, 28 Sep 2006 16:34:46 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8SGXWgL016783; Thu, 28 Sep 2006 16:33:32 GMT Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8SGRr0B026295 for ; Thu, 28 Sep 2006 16:27:53 GMT Received: by wr-out-0506.google.com with SMTP id i12so215768wra for ; Thu, 28 Sep 2006 09:27:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ScOiasbEiMLXFXKsWUrGpqrgjTQ/XDTFfBSb5TT95DRsrK72kBCXO82BLVHO+R9jAtt3T5dTZUdJxla+pK0QDn1v2A1+6lkPTGcW+oDt3Bn2/rRjFtldIHht5OevYelNoDV1xDIJK53hhkw3f7aee+DIONFMadI2vwwj8Naa46w= Received: by 10.90.72.10 with SMTP id u10mr914562aga; Thu, 28 Sep 2006 09:27:52 -0700 (PDT) Received: by 10.90.78.17 with HTTP; Thu, 28 Sep 2006 09:27:52 -0700 (PDT) Message-ID: <3126779c0609280927l12eccf6cxe131253c05293c8c@mail.gmail.com> Date: Thu, 28 Sep 2006 12:27:52 -0400 From: "Trey Gruel" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] date-specific cp/mv In-Reply-To: <20060928161644.79743.qmail@web31713.mail.mud.yahoo.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060928161644.79743.qmail@web31713.mail.mud.yahoo.com> X-Archives-Salt: 23c3b47f-ad5e-48ef-8ca8-f4e543760341 X-Archives-Hash: f7ab07038952607b66e9e02a83769cff On 9/28/06, maxim wexler wrote: > I'd like to be able to cp or mv certain files from a > dir according to their timestamp. > > man cp mentions the '--preserve' option but I don't > think that's what I need. > > Does somebody know of some sort of script or perl or > python pass that'll do it? something akin to: find -type f -mmin 5 -exec cp {} \; will copy all files in srcdir that have been modified within 5 minutes to destdir. check the find man page for other ways of checking the files or restricting how far find will recurse, etc.. -- Trey -- gentoo-user@gentoo.org mailing list