Skip to content

Instantly share code, notes, and snippets.

@pettazz
Created June 7, 2017 22:34
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 pettazz/84d39ceb1377f4a4538fd24e584a5f8f to your computer and use it in GitHub Desktop.
Save pettazz/84d39ceb1377f4a4538fd24e584a5f8f to your computer and use it in GitHub Desktop.
copy an existing file to a bunch of subdirectories
ls parent-dir/ | xargs -I{} -n 1 cp my-cool-file.tgz parent-dir/{}/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment