Skip to content

Instantly share code, notes, and snippets.

@valvallow
Created February 12, 2012 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valvallow/1809001 to your computer and use it in GitHub Desktop.
Save valvallow/1809001 to your computer and use it in GitHub Desktop.
FILE='filepath' ; echo "(`date +%s` - `date -d \"\`stat --print=%y "$FILE" \`\" +%s`) / (60 * 60 * 24)" | bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment