The statfile program

statfile -options file [command arg ...]

statfile calls stat() on file, sets the environment variables specified in options according to the stat information, and runs command. If file begins with a digit, it is interpreted as a file descriptor, and passed to fstat(). If command is not given, statfile exits zero, indicating that the stat() call was successful. The leading "-" in the options argument is not required. Options are as follows: