Unix script Unix script which counts no. of files/sub-files

Hi All,

For past some days iam trying, which not able to get to..so please help me on this..
My exact requirement is...

Step1: Find how many files/sub files exist in /some/path (maybe in multiple path)
Step2: Count the no. of files/sub files with their respective size.
Step3: Then a file has to be get created eg: Space.txt in /another/path with all above details (Step2).

Need your help. Thanks in advance.

Regards,
Rajesh

Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

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

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.