Re: [SLUG] timpestamps in bash

From: Brian Coyle (brian@linuxwidows.com)
Date: Thu Jul 24 2003 - 23:30:43 EDT


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

On Thursday 24 July 2003 23:09, Eric Jahn wrote:
> Is there a way to get timestamp info on a single directory or file
> without parsing ls -l output? I'm trying to dynamically choose the
> backup folder depending on which is older... What would be really cool
> is an "is older than" comparison.

$ man find

  look at the -newer (or -anewer, -cnewer) option

HTH!

- --
"We choose to go to the moon, and do the other things...
 Not because they are easy, but because they are hard." -JFK
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Brian Coyle, GCIA http://www.giac.org/GCIA.php

iD8DBQE/IKRlER3MuHUncBsRArvUAJ9Prr3pjrEtcM536lwrMHLtila9tgCdHPMx
TUpMJcFQ8U6RsPHvSYfz/uA=
=PbR+
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:55:51 EDT