From: "Trey Gruel" <drathos@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] date-specific cp/mv
Date: Thu, 28 Sep 2006 12:27:52 -0400 [thread overview]
Message-ID: <3126779c0609280927l12eccf6cxe131253c05293c8c@mail.gmail.com> (raw)
In-Reply-To: <20060928161644.79743.qmail@web31713.mail.mud.yahoo.com>
On 9/28/06, maxim wexler <blissfix@yahoo.com> 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 <srcdir> -type f -mmin 5 -exec cp {} <destdir> \;
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
next prev parent reply other threads:[~2006-09-28 16:34 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-28 16:16 [gentoo-user] date-specific cp/mv maxim wexler
2006-09-28 16:24 ` darren kirby
2006-09-28 16:41 ` Dave V
2006-09-28 16:27 ` Trey Gruel [this message]
2006-09-28 16:47 ` Alan McKinnon
2006-09-29 2:00 ` maxim wexler
2006-09-29 4:43 ` Daniel Iliev
2006-09-29 16:34 ` [gentoo-user] date-specific cp/mv RESOLVED maxim wexler
2006-09-29 5:47 ` [gentoo-user] Re: date-specific cp/mv Alexander Skwar
2006-09-29 16:27 ` maxim wexler
2006-09-29 18:35 ` [gentoo-user] " Alexander Skwar
2006-09-29 19:43 ` Daniel Iliev
2006-09-29 20:15 ` Richard Fish
2006-09-29 20:37 ` Daniel Iliev
2006-09-29 22:36 ` Richard Fish
2006-09-30 9:33 ` [gentoo-user] " Alexander Skwar
2006-09-29 5:46 ` [gentoo-user] " Alexander Skwar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3126779c0609280927l12eccf6cxe131253c05293c8c@mail.gmail.com \
--to=drathos@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox