How can I get the age of a given file in, at least, days?
I'm well aware of
ls -lh and similar commands. I want something that will work sort of like this:
getfage <FILE> # prints out '12d' (12 days)
Also, this needs to be somewhat cross-platform since I'd also like to use this under Mac OS X, but the primary use-case is on my Linux-box.
Since Linux doesn't track creation time, I'm looking for two-fold solution: one for mtime (linux)--that is the last time said file was modified--and one for Mac OS X, which can either deal with mtime or creation time.