Here's a handy tip (although I'm sure this won't be news to many gurus). I 
recently needed to count how many files I had in a directory and all 
sub-directories. The following command does it:

find   /path/to/your/directory   -type f  |  wc -l

Just remember that, of course, it'll only count files in directories you have 
permission for. So, for example, running    find /home -type f  |  wc -l    
will only count your files and give error messages when trying to enter other 
users directories.

-- 
Shlomo Solomon
http://come.to/shlomo.solomon
Sent by KMail (KDE 3.1) on LINUX Mandrake 9.1



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to