it won't what?
mkdir /mnt/toaster/data cd /usr/data foreach dir (*) cp -a "$dir" /mnt/toaster/data & end
this wasn't meant to be a "shell script" per say, it's just meant to be typed into your interactive shell. The only files that can't have a " or a - at the beginning are the directories in /usr/data
-corris
On Fri, 7 Apr 2000, Bruce Sterling Woodcock wrote:
Date: Fri, 7 Apr 2000 14:29:53 -0700 From: Bruce Sterling Woodcock sirbruce@ix.netcom.com To: Corris Randall corris@acc.com Cc: Robert Johannes rjohanne@damango.net, "Rainchik, Aleksandr (MED, Non GE)" Aleksandr.Rainchik@amermsx.med.ge.com, toasters@mathworks.com Subject: Re: Huge one-time data transfer from UNIX to NetApp
the only files you have to watch for are the root level directories that you're copying, cp -a takes care of the wacky file names based on the fact that it reads the filenames within the program (opendir) rather than on the command line.
Yes, but that shell script won't.
Bruce