Yes, I know, how hard can cp be?
I wanted to copy some of my hidden files from my home dir (backup reasons) so I issued the command:
but it did not copy the files I wanted.
Again, I wanted to copy recusively with out overwriting the files so I issued the command:
The only problem is that though it does do the copy recusively with out over writing it misses many files because if dest containes
Code:
ls -R dir
drwx------ foo
-rw------- bar
/foo:
baz
then cp will not write baz2 into foo (assuming baz2 is in dir). Dolphin has an option called write into all, but cp does not, as far as I can tell.
I could, of course, create an awk script that uses find and mkdir -p etc and copies all of them, but that is rather slow (I have done it).
I'm using bash version 4.2.53 on gentoo linux. coreutils version 8.21.
Thanks