Re: mv files by date
- From: Ron Johnson <ron.l.johnson@xxxxxxx>
- Date: Thu, 31 Aug 2006 15:57:10 -0500
-----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
- References:
- mv files by date
- From: Curtis Vaughan
- Re: mv files by date
- From: Matej Cepl
- mv files by date
- Prev by Date: Re: Use of dpkg --set-selections is brain-dead?
- Next by Date: Re: When Debian 3.1 update r3 ?
- Previous by thread: Re: mv files by date
- Next by thread: gdm (or somethnig) goes deaf when changing virtual consoles
- Index(es):
Relevant Pages
|