Finding files older than the current date and time and renaming and moving
Hi,
I have a very urgent requirement here. I have to find all files in the specified directory but not in the sub directories(The directory name is stored in a variable) which are older than the current date as well as current time and rename it as filename_yyyymmddhhmmss.ext and move it into a different folder(which is also stored in a variable). I am using solaris 5.8.
Here "yyyymmddhhmmss" refers to the date and time the corresponding file was created.
And when i try to use "stat filename" i get Ksh: not found error
Last edited by ragavhere; 11-20-2008 at 11:03 AM..
|