28
2
I am trying to copy all files under directory A to directory B. All files under directory A are starting with dot, for example:
A/.a
A/.b
A/.c
which I found if I use: cp A/* B
, always get error:
cp: cannot stat 'A/*': no such file or directory
It seems there is no option for cp
as ls
to handle entries started with dot, anyone has idea how to fix it?
That's only a problem if you use
-r
. Without-r
, it will just skip the directories. – Mikel – 2014-04-21T01:44:43.617And the example I give using
-R
should work just fine too. If you think it's wrong, please explain why. – Mikel – 2014-04-21T01:48:07.777