I want to cp aaa/deep/sea/blob.psd to bbb/deep/sea/blob.psd
How do I do the copy if the deep and sea directories don't exist under bbb so that the copy both creates the directories that are needed and copies the file?
Right now I get
No such file or directory as deep and sea don't exist.
I looked thru the man help pages and other questions but nothing jumps out at me.
The closest I've got is using rcp for the directory:
rcp -r aaa/deep/sea/ bbb/deep/sea/
though this copies the whole directory and contents and I just want the one file. Trying to do that however gave cp: cannot create regular file bbb/deep/sea/blob.psd' such file or directory
