Is it possible to copy a single file to multiple directories using the cp command ?
I tried the following , which did not work:
cp file1 /foo/ /bar
If all your target directories match a path expression — like they're all subdirectories of path/to — then just use find in combination with cp like this:
path/to
find
cp
find ./path/to/* -type d -exec cp [file name] {} \;
That's it.