Skip to content

Instantly share code, notes, and snippets.

@Xophmeister
Created September 14, 2015 09:59
Show Gist options
  • Save Xophmeister/71c25d4922b0012a363b to your computer and use it in GitHub Desktop.
Save Xophmeister/71c25d4922b0012a363b to your computer and use it in GitHub Desktop.
Process substitution is neat :)
#!/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