@Zanna I also think that
find
is the proper tool if the OP does indeed want to delete files with no permissions. I recently answered
a similar question. If they hadn't run
chmod -R 777
, the answer would be pretty straight forward:
find . -type f -perm 000 -delete
. Now it seems impossible to select the desired files.