Fun Scripting Problem

Tim Daneliuk tundra at
Wed Feb 13 18:53:05 UTC 2013

On 02/13/2013 12:38 PM, Teske, Devin wrote:
> (apologies for top-post)
> As tempted as I am, I think newsyslog(8) may be what you want.
> Missing information in your post is how you intend to timestamp the files -- by filename? by content? If by-content, then is it a good assumption that the data is one entry per-line? ... and if-so, is the timestamp in that line? These are all questions that would be needed to script what you're asking for (not that I'm volunteering or anything like that).

The only way to determine the date of the file is by looking at its
stat info.  There is nothing the file name or content that could
be used to infer this.

Tim Daneliuk

More information about the freebsd-questions mailing list