CeeBee
Expert Member
hi guys, me on my knees again for advice on UNIX pls 
I'm trying to copy files in UNIX, similar to the windows xcopy 1*.* Z*.* command that would change all files in the dir from starting with 1 to starting with Z, like 1APCTL -> ZAPCTL
The command I've got in the instruction is ./cpchg 1 Z which 'should' make a copy of all the 1blabla files and then change to Zblabla, but unix just gives me the finger, like the cmd doesnt exist...
I have done this a few months ago, got it right then, but I just cannot remember if it also didn't work then and I had to try something else
If I try cp 1* Z* to copy or mv 1* Z* to rename, I get message that Z* must be a directory... duh!
now if I just do one file at a time, e.g. cp 1WIPSUB.idx ZWIPSUB.idx, it works just fine, but there are hundreds of files, don't wanna do one at a time
If I FTP the files from UNIX to windows pc, do xcopy and ftp back, it brings the files in as small letters (?!) ZCTL -> zctl, and seems UNIX is mos case sensitive...
I need this to copy live company in Syspro to test company.
Any advice will be sooooo apreciated!
I'm trying to copy files in UNIX, similar to the windows xcopy 1*.* Z*.* command that would change all files in the dir from starting with 1 to starting with Z, like 1APCTL -> ZAPCTL
The command I've got in the instruction is ./cpchg 1 Z which 'should' make a copy of all the 1blabla files and then change to Zblabla, but unix just gives me the finger, like the cmd doesnt exist...
I have done this a few months ago, got it right then, but I just cannot remember if it also didn't work then and I had to try something else
If I try cp 1* Z* to copy or mv 1* Z* to rename, I get message that Z* must be a directory... duh!
now if I just do one file at a time, e.g. cp 1WIPSUB.idx ZWIPSUB.idx, it works just fine, but there are hundreds of files, don't wanna do one at a time
If I FTP the files from UNIX to windows pc, do xcopy and ftp back, it brings the files in as small letters (?!) ZCTL -> zctl, and seems UNIX is mos case sensitive...
I need this to copy live company in Syspro to test company.
Any advice will be sooooo apreciated!
Last edited: