This should be an easy one but I'm kind of stuck. I'm working on a simple script and I need to rename a file using the current date and I'm not sure how to do it.
Let me explain,
My file is named: testfile.txt
I want to rename it to: testfile20051122.txt
(20051122 represents yyyymmdd)
Obviously, I'm not talking about using "mv" to rename the file. I need my script to read the system date and rename the file for me. Can someone help ?? I know this one should be extremely easy for you hard-core scripters out there.
Let me explain,
My file is named: testfile.txt
I want to rename it to: testfile20051122.txt
(20051122 represents yyyymmdd)
Obviously, I'm not talking about using "mv" to rename the file. I need my script to read the system date and rename the file for me. Can someone help ?? I know this one should be extremely easy for you hard-core scripters out there.