Peuchele bio photo

Peuchele

Pedí pollo que yo pago la diferencia!

Email
Photo Credit: Wikimedia Commons

Suppose that you want to calculate the space used by all the png files in current directory and all its subdirectories. From a terminal type:

find . -name '*.png' -exec du -ab {} \; | awk '{total+=$0}END{print total}'