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 format)
I need the log files that occurred on and between 2 July 2013 and 12 July 2013.
Any ideas?
EDIT: I'm more confused about comparing the dates of the files to get the correct ones, i know how to copy files.
Perl and stat
are not available to me
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…