Created
August 16, 2013 17:35
-
-
Save focustrate/6251873 to your computer and use it in GitHub Desktop.
find number of days between now and modified date on folders in a directory -- ordered by longest since modified
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
$ end_date=`date '+%s'`; stat -f "%m;%N" * | awk -F\; -v e=$end_date '{print int((e-$1)/86400), "days \t", $2}' | sort -rn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
displays:
x days filename