#shell script to display files having rwx permission
echo "Files with Read, Write and Execute Permissions"
for file in *
do
if [ -f $file ]
then
if [ -r $file -a -w $file -a -x $file ]
then
echo $file
fi
fi
done
OUTPUT
csc@csc-SVE1513CYNB ~ $ sh access.sh
Files with Read, Write and Execute Permissions
a.out
echo "Files with Read, Write and Execute Permissions"
for file in *
do
if [ -f $file ]
then
if [ -r $file -a -w $file -a -x $file ]
then
echo $file
fi
fi
done
OUTPUT
csc@csc-SVE1513CYNB ~ $ sh access.sh
Files with Read, Write and Execute Permissions
a.out
No comments:
Post a Comment