Hi All,
Really stuck up with a requirement where I need to move a file (Lets say date_Employee.txt--the date will have different date values like 20120612/20120613 etc) from one directory to another based on creation/modification dates.
While visiting couple of posts, i could see we can find the files between 2 dates like below,
Quote:
touch --date "2012-06-12" /tmp/start
touch --date "2012-06-13" /tmp/end
find /data/images -type f -newer /tmp/start -not -newer /tmp/end
But I am stuck up in the step of moving the file from one to another.
Also, I need to capture the dates from the Employee File(20120612 & 20120613 in the above example) to another text file for further processing of the batch.
Can anybody pls help me with some thoughts on this.
Thanks
Freddie