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

link|improve this question
feedback

migrated from stackoverflow.com Jan 4 '11 at 8:20

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

1 Answer

You could use:

chmod g+rw *test* .*test*

Or:

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

Your Answer

 
or
required, but never shown