Write a shell script to change the read and write permission of the file to read,write and execute permission for all. If file exists display as, "File Exists!" else display as, "File does not Exist" If file has read and write permission display as, "File Permission has been changed" Assume file name is given as command line argument.
Answers
Answered by
2
Answer:
this answer l don't know
Answered by
0
Answer:
for f in ${*}
do
if [ -e $f ]:
then
echo "File Exists!"
else
echo " File does not exist"
fi
else
echo "File does not Exist" && exit
fi
done
Explanation:
Above code will display as "File Exists!" if the file exists and it will display as "File does not Exist" if the file does not exists and will display as "File Permission has been changed" if the file has read and write permission.
#SPJ3
Similar questions