|
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.
|