So I'm trying to find out how many files have a date say "Jul 15" and then get the total amount of space they take up.
Currently I'm using something along the lines of
Code:
find /directory -type f -name "*.log*" -cmin -610 2> /dev/null | xargs du -b -h 2>/dev/null | awk '{total += $1; print $0} END{print total}'
But I really don't like having to use ctime and I'm wondering if there is a better way.
Thanks