
Kanji
User
/ Moderator
Mar 15, 2001, 9:24 PM
Post #2 of 2
(412 views)
|
perl -MFile::Find -le 'find( sub { $total += -s }, shift || "." ); print "$total bytes"' ... which will count everything from the current or -- if you give it an argument -- an arbitrary directory down. Changing it into a script instead of a one-liner is left as an exercise to the reader. :-)
|