Copy file but keep 3 levels of from source str…

Copy file but keep 3 levels of from source structure at destination location.:

Here is an example.

Want to copy specifc file C from location A/B/C into Directory D.

There could be many other files in A and A/B dont want those to be copied.

cp argument D = D/A/B/C structure.

I want to keep entire source directory structure by only copying one file from a subdirectory.

Thanks

Thanks

submitted by /u/yanks09champs
[link] [comments] via Linux 101 stuff. Questions are encouraged, noobs are welcome!