Created
January 22, 2019 12:28
-
-
Save jstaffans/22811dcf1b1509534c25dd07b98823f0 to your computer and use it in GitHub Desktop.
Files newer than date, group by date, sum sizes
This file contains hidden or 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
find ./ -maxdepth 1 -type f -newer /tmp/start -printf '%TY-%Tm-%Td %s\n'|awk '{sum[$1]+= $2;}END{for (date in sum){print date, sum[date];}}'|sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment