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?
-r. Without-r, it will just skip the directories. – Mikel Apr 21 '14 at 01:44-Rshould work just fine too. If you think it's wrong, please explain why. – Mikel Apr 21 '14 at 01:48