getting the mdate of a file

jan.muenther at jan.muenther at
Tue Jul 15 23:46:04 PDT 2003


> So, question 1 is how do I get the last mod date of a file?  

if you're running 4.x, you could install the /usr/ports/sysutils/stat
port - it's in base in 5.x. Gives you the MAC times of any given file. 

> Question 2 is, is there a better way that I'm missing?

See Dan's answer.

Cheers, Jan

More information about the freebsd-questions mailing list