I need to check if a directory is empty using an if condition
in the pseudocode below
if [ directory is empty ] ; then
else
although i looked at a few forums on this topic, I left feeling a little unclear and i could not use the command successfully
what can i substitute in the if conditon above, which will let me check if a directory is empty
thnks for all help
-----Post Update-----
I forgot to mention that i have a korn shell (ksh)
-----Post Update-----
I forgot to mention that i have a korn shell (ksh)