>>>>> "Antti" == Antti Hakulinen <[EMAIL PROTECTED]> writes:

  Antti> Hi there all.
  Antti> I have one problem.

  Antti> I would like to know how and with what command i could move a bunch
  Antti> (200,000) files that are 2 weeks OLDER than this date/current date to a
  Antti> certain directory.?
  Antti> Putting them into a *.TAR file is a must, but the tar command seems to
  Antti> understand only "newer than" option.
  Antti> So any solution to this anyone??

Try the command
     find . -mtime +14 -exec mv {} target \;
which will mv all the files older than 14 days to the directory target.
Make sure that the directory target is not in this directory tree.

Alternatively, you can use cpio which is more flexible than tar.

--
Wojciech Komornicki                                      Dept of Mathematics
[EMAIL PROTECTED]                                     Hamline University
http://www.hamline.edu/~wnk/                               St Paul, MN 55104
                                                                         USA

It's not enough to know the world is absurd and restrict yourself merely to
pointing out that fact.... It is wrong to expect a reward for your struggles.
The reward is the act of struggle itself, not what you win.  Even though you
can't expect to defeat the absurdity of the world, you must make the attempt.
That's morality, that's religion, that's art, that's life.

                                                                    Phil Ochs



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to