View Single Post

  #5 (permalink)  
Old 06-25-2007, 06:08 AM
psiva_exforsys psiva_exforsys is offline
Junior Member
 
Join Date: Jun 2007
Posts: 8
psiva_exforsys is on a distinguished road
How to count files directorys

The below command used to count the fikes and directorys

ls -rtl | wc -r | grep "^-r" --> for count the files.

ls -rtl | wc -c | grep "^-d" --> for count the directorys.


Regards,
Siva.P

Last edited by psiva_exforsys; 06-25-2007 at 06:10 AM.
Reply With Quote