Skip to content

Instantly share code, notes, and snippets.

@bkanber
Last active December 22, 2015 21:42
Show Gist options
  • Save bkanber/0180db3798694821dfdc to your computer and use it in GitHub Desktop.
Save bkanber/0180db3798694821dfdc to your computer and use it in GitHub Desktop.
Nifty snippet to list # of files in a directory older than # minutes for 1...60 minutes. Used to analyze session file lifetimes
for i in `seq 1 60`; do echo "$i mins ago"; find . -cmin +$i | wc -l; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment