SHSTAT is like the stat command and the stat() function except that it's designed for use in shell scripts. The tar.gz file contains a single C source file and a man page. A partial alternative to shstat is GNU find via its printf argument.
Re: revised version
> I know the story is only 50 minutes old,
> but I've made some revisions already,
> which I think make it a little clearer
> what I'm getting at.
...