I developed following script and used it :
---
[root@vm68 log]# cat ./find_large_small_files.sh
#!/bin/bash
find . -type d -exec ls -d {} \; &> ./tmpfile
let i=0
for i in `cat ./tmpfile`
do
echo "Directory $i has following no of files : `ls -al $i|wc -l`"
done
---
Try and modify as per your need.
Thursday, 16 June 2011
How to list out number of files inside each directory?
Posted on 10:16 by Unknown
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment