[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dir command



pinniped schreef:

(quote)
To get sizes, du is the obvious choice, but you could do the ridiculous:
$ find . -type f -exec cat {} \; | wc -c
(end quote)

I do the slightly less ridiculous:
for X in $(find . -name '*'); do du -b $X >> mylogfile; done
Which still uses du.
One could also do
find . -type f -exec ls -l {} \; | awk '{save=save+$5; print save}'





Reply to: