Empty dir 

> check if there is any file exist in /home/my_directory
if [ -z "`ls`" ]
        then
        echo "no files found."
else
        echo "files found."
fi

documented on: 04-20-99 15:37:59