Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Report the age of a file or directory.
tract [-a|-c|-m] [-q#] [-s] <file|directory>
tract reports the age of a file or directory; by default it reports the time in seconds since the file or directory was last modified. In query mode it can be used to determine if a file or directory is older than a specified number of seconds.
Status return values
-1
: In query mode, the file is younger than the specified timespan.
0
: Success.
1
: Usage error.
2
: File access error.
The following reports the elapsed time in h:m:s format since tract was installed:
tract -s `which tract`
The unix manual page for find(1).
Original: 1995/02/21 by Mark Calabretta, ATNF