skip to Main Content

i kept trying using -a and the output always ignores my -perm and just sees the -iname only or other way when i switch them

find . -perm -0000 -a -iname "R*" #this just filtered using the name only

find . -iname "R*" -a -perm -0222 #this just filtered using the permissions only

2

Answers


  1. Chosen as BEST ANSWER

    nvm guys i ended up using grep it solved my problem :

    ls -l | grep "rwxrwxr-x|R"
    

    thank you for trynna help me


  2. You need to use parentheses to group the tests together.

    Example:

    find . ( -iname "R*" -a -perm -0000 )
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search