I am able to move files from one folder to another but the issue is I want the new created file in the new folder as its created date and filename.
For instance
/scripts/a.log
moved to
/log/8june2012a.log
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This copies filename as 20120608filename. For your example this is what you want:
This copies filename as 08jun2012filename. If you want move your file instead of copying use
mvinstead ofcp: