public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dave V <dave@mindkeep.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] date-specific cp/mv
Date: Thu, 28 Sep 2006 12:41:57 -0400	[thread overview]
Message-ID: <20060928124157.c425f791.dave@mindkeep.org> (raw)
In-Reply-To: <200609280924.25953.bulliver@badcomputer.org>

[-- Attachment #1: Type: text/plain, Size: 953 bytes --]

I used to use this for moving old mail to an archive folder. Just change the directories, and you should be golden.
alias archive='find ~/.maildir/inbox/cur -mtime +30 -exec mv {} ~/.maildir/inbox/archive/cur/. \;'

Dave

On Thu, 28 Sep 2006 09:24:25 -0700
darren kirby <bulliver@badcomputer.org> wrote:

> quoth the maxim wexler:
> > Hi group,
> >
> > I'd like to be able to cp or mv certain files from a
> > dir according to their timestamp.
> 
> Have a look at find. You can whip up a one-liner using the -atime, -mtime  
> or -ctime tests (depending on your intent) and use -exec to do the cp or 
> mv...
> 
> > -Maxim
> 
> -d
> -- 
> darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
> "...the number of UNIX installations has grown to 10, with more expected..."
> - Dennis Ritchie and Ken Thompson, June 1972
> -- 
> gentoo-user@gentoo.org mailing list
> 


-- 
<Omnic> another .sig addition

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2006-09-28 16:50 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 [this message]
2006-09-28 16:27 ` Trey Gruel
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=20060928124157.c425f791.dave@mindkeep.org \
    --to=dave@mindkeep.org \
    --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