Program:
echo "Enter any file name \c"
read fname
if [ ! -z "$fname" ]
then
if [ -r $fnane -a -w $fname -a -x $fname ]
then
echo You have a read, write and execute permisions to $fname
else
echo Read, wrie and execute permisions denied
fi
else
echo Improper file name
fi
Input/OutPut
Enter any file name yyyy.c
Read, wrie and execute permisions denied
No comments:
Post a Comment