shell programming - how to write a script that renames files aftertheir last moddate?

Stijn Hoop stijn at win.tue.nl
Tue May 27 07:40:43 PDT 2003


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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030527/6d19fd95/attachment.bin


More information about the freebsd-questions mailing list