Hi,
I wish to take "number of days" as input from the user and default it to 1 if not specified.
Then i need
ls -ltr *.csv and select only those files which are "number of days old i.e 1 is for yesterdays.
This may result in n files as output.
with 1 of the n files selected [using any loop] i need to
grep "yellow" output.log output of which will look like
Quote:
Log Process 1 005b:0 2013-12-19 13:21:14 ebill 369 -02011 Process 369 error - Process yellow (PPoE)
and many such results. Here 2013-12-19 13:21:14 is the timestamp in the output.log.
I need to consider only those results in the grep's output that fall +/-4 mins than the time stamp of the .csv file and store "Process" "-02011" in bash variables.
Please let me know if you need more info.
Thank you very much!!