Re: mv files by date



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matej Cepl wrote:
Curtis Vaughan wrote:

Can someone tell me the correct command line for moving a bunch of
files between directories that are, say, older than yesterday while
preserving their time stamps?

find . <paramters to select appropriate files> \
while read FILE ; do mv $FILE other-directory/$(basename $FILE)
done

Read find(info), bash(1), and mv(1) for more details.

OpenVMS does it the easy way.

$ RENA/LOG/BEF=YEST *.LOG;* [.NEW_DIR]

Or, explicitly:
$ RENAME/LOG/BEFORE=YESTERDAY *.LOG;* [.NEW_DIR]

- --
Ron Johnson, Jr.
Jefferson LA USA

Is "common sense" really valid?
For example, it is "common sense" to white-power racists that
whites are superior to blacks, and that those with brown skins
are mud people.
However, that "common sense" is obviously wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE900mS9HxQb37XmcRAkgLAJ92QngduGSW+ATUrE03ffqo1CUAqQCdEuHy
q5czXvIqCr1CTL3ZxLjyAu0=
=JhMu
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: laser printer recommendation for personal use?
    ... Ethernet connectivity would be nice and I could forgo usb then. ... Is "common sense" really valid? ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: GNOME new file selection dialogs
    ... That delay actually occurs when the actual file picker (for ... Is "common sense" really valid? ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: is it possible to create a black box with debian?
    ... I need to protect the server against the case that somebody makes a disk ... Is "common sense" really valid? ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Thunderbird does not show attachments any longer
    ... including Windoze update. ... Is "common sense" really valid? ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Email programs that work.
    ... but pick it up manually as it is a normal IMAP folder. ... Is "common sense" really valid? ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)