Find Unread Files

view story

http://www.unix.com – Hi I have requirement to read only unread files from the directory and load into database. Scenario: I do receive bunch of files into my unix directory for every 15 mins. My ETL Process every once in a day and reads the files and loads into db table. I cannot move these file into different location after extraction as source system will ftp for previous 15 days so i receive the files again if there is no file. So i will have to keep files for 15 days atleast. Could you please advise how we can write the script to read only unread files? (HowTos)