We help IT Professionals succeed at work.

how to copy all files to different folder with different names

SayYou_SayMe
SayYou_SayMe asked
on
Medium Priority
362 Views
Last Modified: 2012-05-11
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


Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Application Support Analyst
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Kamaraj SubramanianApplication Support Analyst
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.