2nd linux
Thu Nov 23 2023 03:38:02 GMT+0000 (Coordinated Universal Time)
Saved by
@viinod07
echo "The name of all files having all permissions :"
for file in *
do
# check if it is a file
if [ -f $file ]
then
# check if it has all permissions
if [ -r $file -a -w $file -a -x $file ]
then
# print the complete file name with -l option ls -l $file
# closing second if statement
fi
# closing first if statement
fi
done
content_copyCOPY
Comments