Skip to content

Instantly share code, notes, and snippets.

@infolock
Created July 17, 2013 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infolock/6024993 to your computer and use it in GitHub Desktop.
Save infolock/6024993 to your computer and use it in GitHub Desktop.
Shell command to quickly copy a LICENSE (ie: /documents/LICENSE) file into a all subdirectories where all of my github projects are located : (ie: /sources/github/ contains jsToolkit, PHPToolset, etc.). This maxdepth option keeps it isolated to just the root of the subdirectories. removing it will traverse the entire directory tree and copy all …
find /sources/github -type d -maxdepth 1 -exec cp -i /documents/LICENSE {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment