I have noticed that cp -a not only will copy hidden files but
the -a causes it to act differently than any other form of cp.
The man page says cp -a is the equivalent of cp -dpR but it is not at all the same.
For one thing, cp -a copies the .hidden files.
For another, any other form of cp
another way to copy ALL files as well as permissions
on a directory to another (besides those already
mentioned by other listers) is to use 'tar':
cd /directory_to_copy
tar cf - . | (cd /directory_to_put_the_files; tar xpf
- )
what is your program trying to do anyway? just moving
files?
---
- Original Message -
From: Gregor Maier [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, August 14, 2001 12:08 AM
Subject: RE: [expert] * does not select all files
On 13-Aug-2001 George Petri wrote:
Hi!
Does anyone know why * misses hidden files
On Monday 13 August 2001 09:42, George Petri wrote:
Hi!
Does anyone know why * misses hidden files such as .kderc?
What is the reasoning for that?
I mean to select ALL files, now I have to specify (in bash, of course):
* *.[a-zA-Z]
to my programs e.g. cp * *.[a-zA-Z] /somefolder.
It
On 13-Aug-2001 George Petri wrote:
Hi!
Does anyone know why * misses hidden files such as .kderc?
What is the reasoning for that?
I mean to select ALL files, now I have to specify (in bash, of course):
* *.[a-zA-Z]
to my programs e.g. cp * *.[a-zA-Z] /somefolder.
It is also a
I take that back, files starting with 2 dots would still be hidded. The only
way is to do it is:
echo .[^.]* ..[^.]* ...* *
Try it. Create these files
.bozo
..bozo
...bozo
bozo
and you will see that displays them all, but does not display . and ..
--
Gerard Perreault
[EMAIL
Or, try:
cp -a .??* destination
Ric
*** REPLY SEPARATOR ***
On 8/13/2001 at 12:39 PM root wrote:
I take that back, files starting with 2 dots would still be hidded. The
only
way is to do it is:
echo .[^.]* ..[^.]* ...* *
Try it. Create these files
.bozo
..bozo
On Monday 13 August 2001 12:26, root wrote:
On Monday 13 August 2001 09:42, George Petri wrote:
Hi!
Does anyone know why * misses hidden files such as .kderc?
What is the reasoning for that?
I mean to select ALL files, now I have to specify (in bash, of course):
* *.[a-zA-Z]
On Monday 13 August 2001 18:45, civileme wrote:
On Monday 13 August 2001 12:26, root wrote:
On Monday 13 August 2001 09:42, George Petri wrote:
Hi!
Does anyone know why * misses hidden files such as .kderc?
What is the reasoning for that?
I mean to select ALL files, now I
On Monday 13 August 2001 13:52, Ric Tibbetts wrote:
Or, try:
cp -a .??* destination
Ric
*** REPLY SEPARATOR ***
On 8/13/2001 at 12:39 PM root wrote:
I take that back, files starting with 2 dots would still be hidded. The
only
way is to do it is:
echo .[^.]*
10 matches
Mail list logo