Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- find . -type f -regex '.*\.txt$' -exec chmod u+r {} \;
- find . -type f ! -regex '.*\.txt$' -exec chmod 700 {} \;
- find . -type d ! -regex '^\.$' -exec chmod u+w {} \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement