General discussion


Copying files in UNIX

By dodik ·
I have Folder1 with 12000 files in that folder.
I can easely copy all files from this folder to another folder using commands:

Password: xxxx
cp ./Folder1/* ./Folder2/

I created a script in csh - "copyFiles",
again :
Password: xxxx

then I use "exec" command to run script in the same shell:
exec copyFiles
it copies portion of Folder1 and gives me an error
"Argument too long"
What I'm doing wrong?


This conversation is currently closed to new comments.

13 total posts (Page 2 of 2)   Prev   01 | 02
Thread display: Collapse - | Expand +

All Comments

Back to Linux Forum
13 total posts (Page 2 of 2)   Prev   01 | 02

Related Discussions

Related Forums