Here is a text, I need to parse;
JAVA_OPTS=blablalba
lbalbalba
1. main1:
aelo1 2020-06-15 11 4422
sddg2 2020-06-12 19 422
2. main2:
fdata3 2020-06-15 11 4422
gcontent4 2020-06-12 19 422
3. main3:
hxvnt5 2020-06-15 11 4422
vcfdet6 2020-06-12 19 422
I need to only parse the numbered bullet point, until next bullet point. and find the 4 th column greater than 1000 and older than 12 hours (2nd column date time) then send the details in email. I tried parsing via re library in python, but cannot achieve it.
So the expected output is;
1. main1:
aelo1 2020-06-15 11 4422
2. main2:
fdata3 2020-06-15 11 4422
3. main3:
hxvnt5 2020-06-15 11 4422
is it possible via bash or python ?