Hello,
I have a ksh script that gathers logs. Until recently, it's only function has been to gather the most recent of several different types. I have been tasked with changing it so that it can also search for logs in a user specified date range. I know about finding files with +ctime and such, but my problem with these is
1) that the dates are relative to system time
2) that you can't specify minutes and hours along with days
I'm prepared to write some lengthy code to do this (essentially grepping on an `ls -ltr`'s date/time columns) but I figured there had to be an easier way. I was just looking at this other post: and I'm going to attempt to adapt it. Thanks for any replies.
Xhonzi
I have a ksh script that gathers logs. Until recently, it's only function has been to gather the most recent of several different types. I have been tasked with changing it so that it can also search for logs in a user specified date range. I know about finding files with +ctime and such, but my problem with these is
1) that the dates are relative to system time
2) that you can't specify minutes and hours along with days
I'm prepared to write some lengthy code to do this (essentially grepping on an `ls -ltr`'s date/time columns) but I figured there had to be an easier way. I was just looking at this other post: and I'm going to attempt to adapt it. Thanks for any replies.
Xhonzi