What’s the age of that file?

expr $(date +%s) - $(stat -t %s -f%c that_file)

Don’t you love bash one-liners?

Comments are closed.

%d bloggers like this: