From time to time I get stucked in problems that I cant solve on my own. The good thing is that I have always got help on this forum, and I hope that somone can help me with this problem too.
I have a log- file that contains several "warnings" and "fails", the problem is that the warning/fail does not connect to the "string" which is 3 lines above, so the information is no good for further actions.
What I'm trying to do is to find all the warnings/Fails, which always starts with A: or F: - then I whant to hook this up with the "string" 3 lines above.
Maybe the example explains this better.
* 5120061206xX99999Www9999261A288887 navnn 2001390000932294346navn
* navn adre 11 4515100210119200612
* 06322 00243001830003222014500K113000050400 0000000000000
* A:8208 Ufullstendige data om
* Dette medfører at kun dato vvvvvvvvvvvvvvvvvv utland leses inn
* merke: xxxxxxx vvvvvvv.nr Www2200261A299907 Dato
What I'm hoping for is to find/create a macro that searches for all A: and F: in a file, and then put them together in one string, line by line like this
A:8208 Ufullstendige data om 5120061206xX99999Www9999261A288887 navnn 2001390000932294346navn
F:1500 example example 5211111111111111111111111111111111
A:15000 example 5122222222222222222222222222222222
I have a log- file that contains several "warnings" and "fails", the problem is that the warning/fail does not connect to the "string" which is 3 lines above, so the information is no good for further actions.
What I'm trying to do is to find all the warnings/Fails, which always starts with A: or F: - then I whant to hook this up with the "string" 3 lines above.
Maybe the example explains this better.
* 5120061206xX99999Www9999261A288887 navnn 2001390000932294346navn
* navn adre 11 4515100210119200612
* 06322 00243001830003222014500K113000050400 0000000000000
* A:8208 Ufullstendige data om
* Dette medfører at kun dato vvvvvvvvvvvvvvvvvv utland leses inn
* merke: xxxxxxx vvvvvvv.nr Www2200261A299907 Dato
What I'm hoping for is to find/create a macro that searches for all A: and F: in a file, and then put them together in one string, line by line like this
A:8208 Ufullstendige data om 5120061206xX99999Www9999261A288887 navnn 2001390000932294346navn
F:1500 example example 5211111111111111111111111111111111
A:15000 example 5122222222222222222222222222222222