script for disk summary by file ownership
Posted on 2003-03-24
I am wishing if somebody can help me out with my problem.
I need to scan the file system table(/etc/mtab ot /etc/vfstab) and then recursively go thru each sbdirectory counting the number of blocks owned by users listed in /etc/passwd
So the final output would be like
I know that we can use "du -ks" to get the number of blocks used but it doesnt give me user name.
An example output for clarifying would be
Appreciate your support on this.