Results 1 to 3 of 3
Hi all...
I have a directory called dbrn . This directory contains an unknown number of subdirectories which in turn contain an unknown number of files.
What I want to ...
- 08-22-2011 #1Just Joined!
- Join Date
- Aug 2011
- Posts
- 1
Command for total number of files (and size) across subdirectories?
Hi all...
I have a directory called dbrn. This directory contains an unknown number of subdirectories which in turn contain an unknown number of files.
What I want to know is:
How many files with extention .ABC can be found in /dbrn across all subdirecties, and what is the total size for all files with extention .ABC
I know how to do this if all files are in the root folder, but not if the files are scattered across subdirectories.
Anyone any idea on what command (with what parameters) to use to accomplish the above?
Thanx!
- 08-22-2011 #2
Try this
Code:find /dbrn -type f -name "*.ABC" -print0 | du -c --files0-from=-
You must always face the curtain with a bow.
- 08-23-2011 #3Just Joined!
- Join Date
- Sep 2007
- Posts
- 51


Reply With Quote
