For example, I want to apply chmod 777 to every file in some directory which name matches some regular expression. Sure I can do stuff like chmod 777 f*, but when it comes to something more complicated, I don't know how to do it. For example, I can't run chmod 777 *a{3,5}.
How can it be done?