qnx-neutrino

Find a file that was created within five days of another file in shell

て烟熏妆下的殇ゞ 提交于 2019-11-29 05:10:41
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