Last active
January 3, 2016 13:39
-
-
Save martinhansdk/8470790 to your computer and use it in GitHub Desktop.
Space used by files the past seven days.
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
#!/bin/bash | |
find /data/files -ctime 7 -type d -print0 | du --files0-from=- -m | awk '{i+=$1} END {print i}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment