Help with find -perm option

How to find all files for instance that match the permission rwxr*x--- where * is a wildcard which can be optionally asserted but all the others must match? Thanks in advance

find . -type f \( -perm 770 -o -perm 750 \)

Regards,
Alister

Any way to do it specifying -perm only once?

What I gave was a simple example, of course if you had more wildcards things would get uglier. I'd like to not have to specify -perm a bunch of times if possible.

Either you specify the exact mode using '-perm mode' or a mininum mode using '-perm -mode'. The latter allows one to specify which bits must be set while the rest are left as "wildcards", but it does not allow you to specify which must be unset.

Regards,
Alister

So this looks like a job for grep then? Anyone wanna take stab?

Change the '*' to a '.' and use that as a regular expression.

@stevensw
Please show commands which you have tried on your system and record the results of those commands and mention why each command does not match your reqiurement.
Is this work or degree-level h*m*w*r* ?

I have tried the find command, it appears it does not allow this functionality. I am doing this for work. The customer decided this functionality is only nice to have, so feel free to chime in but if not that's fine, you've been helpful regardless. Thanks