Find a particular directory in multiple file systems and calculate total size

Hello :

I need some help in writing a ksh script which will find a particular directory in all the file systems in a server and finally report the total size of the direcotry in all the file systems.

Some thing like this..

find /u*/app/oracle -type d -name "product" -prune

and then iteratively report the size of the product directory per file system and report the total size for the directory in all file systems in the server.

Any help would be greatly appreciated.

Thanks in Advance.

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.

Original post was here.

1 Like