echo "enter file name"
read fn
if [ ! -f $fn ]
then
echo "Sorry this file is not exist"
elif [ -r $fn ]
then
echo "yes $fn is readable file"
else
echo "Sorry $fn is not readable file"
fi
echo "enter file name"
read fn
if [ ! -f $fn ]
then
echo "Sorry this file is not exist"
elif [ -r $fn ]
then
echo "yes $fn is readable file"
else
echo "Sorry $fn is not readable file"
fi
Leave a Reply