Skip to content

Instantly share code, notes, and snippets.

@jstaffans
Created January 22, 2019 12:28
Show Gist options
  • Save jstaffans/22811dcf1b1509534c25dd07b98823f0 to your computer and use it in GitHub Desktop.
Save jstaffans/22811dcf1b1509534c25dd07b98823f0 to your computer and use it in GitHub Desktop.
Files newer than date, group by date, sum sizes
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