Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you change the access permission (add group read/write) to all the files in the current directory containing the word "test"

share|improve this question

migrated from Jan 4 '11 at 8:20

This question came from our site for professional and enthusiast programmers.

You could use:

chmod g+rw *test* .*test*


find -maxdepth 1 -name '*test*' -exec chmod g+rw {} +
share|improve this answer

You must log in to answer this question.