Home > Archive > AWK > November 2004 > parsing RS & associated fields
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
parsing RS & associated fields
|
|
| dragrid 2004-11-16, 6:50 pm |
| previously posted 11/20
but had type O which could cause some confusion as to what I would like[color=darkred]
s might be easier)
| |
| Ed Morton 2004-11-16, 6:50 pm |
|
dragrid wrote:[color=darkred]
> previously posted 11/20
> but had type O which could cause some confusion as to what I would like
>
might be easier)
This is your third attempt. You posted a question and got an answer. You
then re-posted the same question with a vague refernce to you having
done something about "type 0". When I read your postings I see what
looks like a bunch of data that may or may not be wrapround lines and I
don't know what it was about the posted solution that you're unsatisfied
with. Just a suggestion - you may want to tidy up your posting and
create a SMALL sample in/out that demonstrates your problem.
Ed.
| |
| dragrid 2004-11-16, 6:50 pm |
| Ed Morton <morton@lsupcaemnt.com> wrote in message news:<cn2rrq$oh2@netnews.proxy.lucent.com>...
sorry about the confusion Ed
but Schwarz answer is unclear to me
I am not that verse on awk
Line wrap does not matter as long as I caputure the lines that follow $0~
* FATAL and or $0~ CRITICAL
and skip the else
so based on my file after the program I should end up with
[color=darkred]
IFPC: site 111 (DNTNTXXA01W), cage 1, slot 2
(3/1) Task I75(PAP Infrastructure)/0 Module FC(Flush routines)/1
00 00 00 00 have been removed, 00 00 00 00 have been
delivered.[color=darkred]
IFPC: site 109 (SNMNCAXP01W), cage 1, slot 0
(3/1) Task I75(PAP Infrastructure)/0 Module FC(Flush routines)/1
00 00 00 00 have been removed, 00 00 00 00 have been
delivered.
after this I will work on getting the latest version of each unique message
Thanks
| |
| Ed Morton 2004-11-16, 6:50 pm |
| I don't normally top-post, but I need to here:
You misunderstand my posting. I'm suggesting that, to get the response
you're looking for, you come up with a SMALL example of your problem
using SHORT lines that don't wrap around newsreader windows and write up
a brand new description of your problem as you currently see it without
reference to any previous postings.
Ed.
dragrid wrote:
> Ed Morton <morton@lsupcaemnt.com> wrote in message news:<cn2rrq$oh2@netnews.proxy.lucent.com>...
>
> sorry about the confusion Ed
> but Schwarz answer is unclear to me
> I am not that verse on awk
> Line wrap does not matter as long as I caputure the lines that follow $0~
> * FATAL and or $0~ CRITICAL
> and skip the else
> so based on my file after the program I should end up with
>
>
>
> IFPC: site 111 (DNTNTXXA01W), cage 1, slot 2
> (3/1) Task I75(PAP Infrastructure)/0 Module FC(Flush routines)/1
> 00 00 00 00 have been removed, 00 00 00 00 have been
> delivered.
>
>
> IFPC: site 109 (SNMNCAXP01W), cage 1, slot 0
> (3/1) Task I75(PAP Infrastructure)/0 Module FC(Flush routines)/1
> 00 00 00 00 have been removed, 00 00 00 00 have been
> delivered.
>
> after this I will work on getting the latest version of each unique message
>
> Thanks
| |
| dragrid 2004-11-18, 3:55 am |
| Ed Morton <morton@lsupcaemnt.com> wrote in message news:<cn2rrq$oh2@netnews.proxy.lucent.com>...
sorry about the confusion Ed
but Schwarz answer is unclear to me
I am not that verse on awk
Line wrap does not matter as long as I caputure the lines that follow $0~
* FATAL and or $0~ CRITICAL
and skip the else
so based on my file after the program I should end up with
[color=darkred]
IFPC: site 111 (DNTNTXXA01W), cage 1, slot 2
(3/1) Task I75(PAP Infrastructure)/0 Module FC(Flush routines)/1
00 00 00 00 have been removed, 00 00 00 00 have been
delivered.[color=darkred]
IFPC: site 109 (SNMNCAXP01W), cage 1, slot 0
(3/1) Task I75(PAP Infrastructure)/0 Module FC(Flush routines)/1
00 00 00 00 have been removed, 00 00 00 00 have been
delivered.
after this I will work on getting the latest version of each unique message
Thanks
|
|
|
|
|