Forum Moderators: bakedjake

Message Too Old, No Replies

shell script to list empty directory

need to search on the server directory with no files

         

rp123

11:57 pm on May 10, 2003 (gmt 0)



I need to get the list of directory with no files so I can delete from the server. I will really appriciate the effort in guiding me in the right direction.

Thanks!

SinclairUser

2:21 am on May 11, 2003 (gmt 0)

10+ Year Member



There is a very simple unix command you can use to list directories and another to remove only the empty ones - but if you dont know what you are doing you might cause big problems. Do you want a list of empty directories to choose which ones to delete and then remove them selectively - or do you just want to nuke all empty ones?