Skip to content

Instantly share code, notes, and snippets.

@mjlescano
Last active December 15, 2023 06:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjlescano/5e0b5f91b1d368ca6bd0 to your computer and use it in GitHub Desktop.
Save mjlescano/5e0b5f91b1d368ca6bd0 to your computer and use it in GitHub Desktop.
Bash command to copy permissions from a file to other(s).
chmod $( stat -f '%p' "$1" ) "${@:2}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment