serhii.net

In the middle of the desert you can say anything you want

01 Nov 2021

211101-2111 bash - Find the size of all files of a certain type

From SO, to find the disk space taken by files with a certain extension/type:1

find ./photos/john_doe -type f -name '*.jpg' -exec du -ch {} + | grep total$
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus