Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jan 4 '11 at 8:20

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

add comment

1 Answer 1

You could use:

chmod g+rw *test* .*test*

Or:

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.