expr $(date +%s) - $(stat -t %s -f%c that_file)
Don’t you love bash one-liners?
This entry was posted on Friday, September 12th, 2008 at 4:20 pm and is filed under tools. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
Connecting to %s
Notify me of follow-up comments via email.
Bertrand Delacrétaz here - my résumé will tell you more.
The opinions expressed here are my own, I'm not representing any group or company on this blog. YMMV.
Get every new post delivered to your Inbox.