From owner-freebsd-questions@FreeBSD.ORG Tue May 27 07:40:42 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7CD637B401 for ; Tue, 27 May 2003 07:40:42 -0700 (PDT) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE42E43F75 for ; Tue, 27 May 2003 07:40:41 -0700 (PDT) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.9/8.12.9) with ESMTP id h4REhEKX049202; Tue, 27 May 2003 16:43:14 +0200 (CEST) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.9/8.12.9/Submit) id h4REhErK049201; Tue, 27 May 2003 16:43:14 +0200 (CEST) Date: Tue, 27 May 2003 16:43:14 +0200 From: Stijn Hoop To: Joseph Gleason Message-ID: <20030527144314.GB43731@pcwin002.win.tue.nl> References: <200305271318.h4RDIDs21928@thunder.trej.net> <005001c3245d$2ad0c7b0$08695f0a@frigate> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E39vaYmALEf/7YXx" Content-Disposition: inline In-Reply-To: <005001c3245d$2ad0c7b0$08695f0a@frigate> User-Agent: Mutt/1.4.1i X-Bright-Idea: Let's abolish HTML mail! cc: Joachim Dagerot cc: freebsd-questions@freebsd.org Subject: Re: shell programming - how to write a script that renames files aftertheir last moddate? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 14:40:43 -0000 --E39vaYmALEf/7YXx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 27, 2003 at 10:35:04AM -0400, Joseph Gleason wrote: > Does anyone know how to get the modification time_t from a file in shell > script? There is probably some command to do it that I don't know about. You're probably looking for stat(1), which is included in 5.x and available as a port for 4.x in sysutils/stat. HTH, --Stijn --=20 What would this sentence be like if it weren't self-referential? --E39vaYmALEf/7YXx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+03mCY3r/tLQmfWcRAjC+AKCiVW2XxbjZ1Nkevnug0vAzI8XVSgCfWBi8 ApGHgtCysyyi6RjJKHtWFf0= =2DaR -----END PGP SIGNATURE----- --E39vaYmALEf/7YXx--