Hi mates,

this is about a routine I would like to call "DIRLEN", it should
output me the EXACT length and amount of files in the specified
dir and its sub-dirs.

du -hs * has not brought me much further. maybe some bash expert
has an idea how to maybe pipe "ls" to some filter.

the problem with du -hs * is that du gives me not the length
but THE USAGE of that very file on disk (which may of course
vary from fs to fs)

Now, how can I get what I want... I had that command for DOS6.xx
and its output was something like:

Total length of Directory "/text" with sub-dirs:
47 Files 301302 bytes
 9 Files 173 bytes
81 Files 884194 bytes

A "grand total" would be TOP of that iceberg...

Any ideas? Come on...

-- 
*��., ��,.��*���*�        =Oliver@home=         *��., ��,.��*��*�
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to