Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 May 2003 16:43:14 +0200
From:      Stijn Hoop <stijn@win.tue.nl>
To:        Joseph Gleason <clash@tasam.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: shell programming - how to write a script that renames files aftertheir last moddate?
Message-ID:  <20030527144314.GB43731@pcwin002.win.tue.nl>
In-Reply-To: <005001c3245d$2ad0c7b0$08695f0a@frigate>
References:  <200305271318.h4RDIDs21928@thunder.trej.net> <005001c3245d$2ad0c7b0$08695f0a@frigate>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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

-- 
What would this sentence be like if it weren't self-referential?

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE+03mCY3r/tLQmfWcRAjC+AKCiVW2XxbjZ1Nkevnug0vAzI8XVSgCfWBi8
ApGHgtCysyyi6RjJKHtWFf0=
=2DaR
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030527144314.GB43731>