Answer the question
In order to leave comments, you need to log in
How, using a bash script, to calculate the size of all files in a directory created in a certain year?
There is a directory /home/user/repo/
Tell me how to calculate the size of all files in a directory created in a certain year?
Answer the question
In order to leave comments, you need to log in
calculate the size of all files in a directory created in a certain year?
find /home/user/repo -type f -newermt 2017-01-01 -not -newermt 2018-01-01 -print0 | du --files0-from=- -B 1 -c
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question