cp and scp

Apr. 5th, 2010 07:56 pm
gusl: (Default)
[personal profile] gusl
I am in a directory with a number of folders, each of which has a file named out.csv

I would like to copy only these files, while preserving directory structure.

If I do scp -r gusl@ubc.ca:my-project/*/out.csv my-project/ then all the copies of out.csv get copied into the base of my-project, erasing each other.

I want to specify which files match separately from the root directory from which I am recursively copying.

Is this one of the rare uses of the --copy-contents option?
(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

February 2020

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags