1

I'm using svn on a project and I'm trying to see how much file space all of the .svn folders are taking up.

If I do something like

du -h | egrep ".*\.svn$"

It will list all of the .svn folders and their sizes, but on 3k+ lines. How can I total all these lines (or perform an operation that would give me the equivalent result)?

1 Answer 1

2
du -shc `find . -name .svn -print`

-print can be omitted if you are using find from GNU coreutils.

1
  • Did the trick. Didn't know about the -c option. Thanks. Oct 17, 2012 at 23:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .