I have recently had a requirement of finding the empty directories in mount point (or) file system where there is no "-empty" option of find command is supported/available.
if its there. Its very simple just like given below
find . -type d -empty
This is the alternate way to get it done.
There are few Sub directories under mount point
Take a list of them into a text file. I named it as testfile here.
I have designed this sample script to do the work for me.
It will write a log file with -empty- or -notempty- tag lines.
No comments :
Post a Comment