Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
chown $(stat -f%u:%g "$SRCDIR") "$DSTDIR"
chmod $(stat -f%Mp%Lp "$SRCDIR") "$DSTDIR"
(ls -lde "$SRCDIR" | tail +2 | sed 's/^ [0-9]*: //'; echo) | chmod -E "$DSTDIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment