Created
June 7, 2017 22:34
-
-
Save pettazz/84d39ceb1377f4a4538fd24e584a5f8f to your computer and use it in GitHub Desktop.
copy an existing file to a bunch of subdirectories
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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