Last active
December 22, 2015 21:42
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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