Re: [expert] * does not select all files

2001-08-14 Thread Larry Alkoff
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

Re: [expert] * does not select all files

2001-08-14 Thread DM
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? ---

Re: [expert] * does not select all files

2001-08-13 Thread George Petri
- 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

Re: [expert] * does not select all files

2001-08-13 Thread root
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

RE: [expert] * does not select all files

2001-08-13 Thread Gregor Maier
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

Re: [expert] * does not select all files

2001-08-13 Thread root
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

Re: [expert] * does not select all files

2001-08-13 Thread Ric Tibbetts
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

Re: [expert] * does not select all files

2001-08-13 Thread civileme
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]

Re: [expert] * does not select all files

2001-08-13 Thread root
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

Re: [expert] * does not select all files

2001-08-13 Thread root
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 .[^.]*