Created
September 14, 2015 09:59
-
-
Save Xophmeister/71c25d4922b0012a363b to your computer and use it in GitHub Desktop.
Process substitution is neat :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Change the group and group permissions for everything, recursively, in the cwd | |
find . | tee >(xargs chgrp -h NEW_GROUP) | xargs chmod -h g+rw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment