echo "Enter file name:"
read fname
if [ -x $fname ]
then
echo "File is Executable"
else
echo "File is not Executable"
fi
echo "Enter file name:"
read fname
if [ -x $fname ]
then
echo "File is Executable"
else
echo "File is not Executable"
fi
[…] Write a shell script to test the file is a executable file or not. […]