>>While doing some cleanup, we tried to move a bunch of log files from the
>>logging dir to a dir with the year in its name. (I.E. all of the log
>>files from 1996 to a dir call logs_1996.)
>>Under csh, when we tried a "mv *", we got an error message saying there
>>were too many files. Is there a way around this? Is there another shell
>>I could wrap around the command to get this to work?
>>Ontario Hydro | Tel. (416) 592 4195
>Try the following:
>mv [a-o]* destination
>mv [p-z]* destination
>If this still gets the too many files message, try splitting the file
>names even more.
With both of these solutions, you can run into the problem of having too
many parameters in the argument list. Here's a solution that should
tar cf - source_path | (cd dest_dir; tar xfvp -)
This way you can't overload the command line. Plus, you maintain
permissions and ownership attributes across the copy.
UNIX/Internet Systems Administrator, GST-Call America; SLO, CA