Thursday, June 21, 2018

Write a shell script which displays a list of all files in the current directory to which you have read, write and execute permissions - OS

for File in *
do
if [ -r $File -a -w $File -a -x $File ]
then
echo $File
fi
done

No comments:

Post a Comment