From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mat Harris Subject: oldest file Date: Thu, 6 Feb 2003 10:01:16 +0000 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20030206100116.GA11904@genestate.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Return-path: Content-Disposition: inline List-Id: To: linux-admin@vger.kernel.org --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable i am sure this has been asked before, but I can't find trace of it in any archives. I need to find the oldest directory inside multiply subdirectories. Perhaps I should explain... I have /home/cams/ inside that dir is four other dirs: cam1 cam2 cam3 cam4 inside each of those is a directory structure like: year/day-date/ i want to run a script that searches for the oldest day in each cam directory. What is the best way to do this. btw, the oldest days are rm -rf'd when found. --=20 Mat Harris OpenGPG Public Key ID: C37D57D9 mat.harris@genestate.com www.genestate.com=09 --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+QjJrEsYvZsN9V9kRAoqsAKDTu7SuEDKSBB5t/XAPREO7P1BJvQCdGm/g 9jp5DIX0jZD0pxYrkRxVZ/I= =i3my -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--