Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #!/bin/bash
  2. (IFS='
  3. ';
  4. dot="."
  5. for dir in `find -maxdepth 1 -type d`; do
  6. if [ "$dir" = . ] ; then
  7. continue;
  8. fi
  9. cd "$dir";
  10. #echo "$dir";
  11. cnt=`find -type f | wc -l`
  12. echo "$cnt $dir";
  13. cd ..;
  14. done;
  15. )
  16.  
  17. #watch -n 2 /home/satya/Documents/fileCnt.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement