if [ -d /home/r12oravis/test ]
then
echo "Directory /home/r12oravis/test is available"
cd //home/r12oravis/test
if [ -f aaa.prg ]
then
echo "File exists"
if [ -r aaa.prg ]
then
echo "File readable"
if [ -s aaa.prg ]
then
echo "File is not empty"
else
echo "File is empty"
fi
else
echo "File is not readable"
fi
else
echo "File doesn't exists"
fi
else
echo "Directory doesn't exists"
fi
No comments:
Post a Comment