Link to home
Start Free TrialLog in
Avatar of SayYou_SayMe
SayYou_SayMe

asked on

how to copy all files to different folder with different names

I have many data files under /data/file/
IBM.txt
DELL.txt
GOOGLE.txt
..
..
I want to use 1 unix command to backup all files to another folder /backup/file/
IBM.bkp
DELL.bkp
GOOGLE.bkp
..
..

cp /data/file/*.txt /backup/file/*.kbp

it does not work


SOLUTION
Avatar of Jerry Miller
Jerry Miller
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial