Skip to content

Instantly share code, notes, and snippets.

@dbrack
Created January 11, 2013 12:46
Show Gist options
  • Save dbrack/027b19e68327af177507 to your computer and use it in GitHub Desktop.
Save dbrack/027b19e68327af177507 to your computer and use it in GitHub Desktop.
Copy all files from sourcedir, including sub-dirs, to targetdir
find sourcedir -type f -print0 -exec cp {} targetdir \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment