J
Jim
Hi
I have a logfile where I need to do the following:
1. Scan the logfile
2. If a date and time are found at the beginning of a line
a. Check 8 lines below, if the 8th line below has the following string
"Foo", then
i. save the date/time from Step 2 in alternate logfile
ii. save the 8th line down in alternate logfile
3. Continue scanning logfile/repeat
Perl is not my speciality, so if anyone has any suggestions on how best
to accomplish this, it would be greatly appreciated. Thanks.
Jim
I have a logfile where I need to do the following:
1. Scan the logfile
2. If a date and time are found at the beginning of a line
a. Check 8 lines below, if the 8th line below has the following string
"Foo", then
i. save the date/time from Step 2 in alternate logfile
ii. save the 8th line down in alternate logfile
3. Continue scanning logfile/repeat
Perl is not my speciality, so if anyone has any suggestions on how best
to accomplish this, it would be greatly appreciated. Thanks.
Jim