I have written a script which will run periodically. The program will rename a given file based on complex logic and move it to another folder.
This script would be run by an Oracle Concurrent program who's last run date can be extracted from a database table.
The issue is to extract the file creation date for the file currently in the loop and compare it with last run date of Concurrent Program and only perform actions if the file was created after last run timestamp of the concurrent program.
I have also given code for my shell script for better understanding : https://pastebin.com/6P52BYP3
I'm facing issues in extracting creation timestamp for a given file and comparing it with last run date of program.
Thanks, Shubham