Find a file that was created within five days of another file in shell
i'm still pretty new to scripting so stick with me and if you have any questions please feel free to ask. Okay, so: I have a file let's say file.txt file.txt exists in a directory /this/is/the/directory/file.txt In a separate directory .log files exist that tell me what happens when file.txt was created. fuubar.log, fuu.log, bar.log, this.log, that.log, some.log, other.log ...there is an unknown number of these logs. I need to gather all the log files that occurred +-5 days of the file.txt file being created. For example: file.txt was created on 7 July 2013 (don't pay any attention to date