converting line input into columns



hi,

I have a file with formatted output like this:

Severity: Important
Status: Unknown
PDI ID: 1895
Finding Details
This vulnerability... blah, blah, blah
Vulnerability Discussion
blah, blah, blah text
Fix recommendations
blah, blah, blah text

Please advice on how to parse such a file allowing me to put it in a
column type format. As you can see, can't use : as a separator since
not all categories have it. Plus, some of the details of these
categories are plopped in a separate line instead off next to it. Best
way would probably be to put all of it in one tab seberated line
(cleaning out severity, status, etc. later) I just dont know how to do
that. Please advice.,

Thanks,
AV

.



Relevant Pages

  • Re: converting line input into columns
    ... I have a file with formatted output like this: ... blah, blah, blah ... one for grabbing things like 'Severity: Important' and one for grabbing things like 'Finding Details....' ...
    (comp.lang.perl.misc)
  • Include Cc: details on merged letters using mail merge database or fields? (not email Cc:)
    ... I've set up the mail merge using the wizard. ... other seven recipients to which the letter was sent. ... Blah, blha, blah, blah ... Any advice would be much appreciated. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Is Chris Hills a troll?
    ... program is UB (and because there were no explicit header files). ... If you think the advice is poor, ... from the C Standard than them - these same posters are the ones who ... delight in smacking down other replies for being "off-topic, not C, blah ...
    (comp.lang.c)
  • Re: Why?
    ... Why is our government still taking advice from economists that were in ... Even up till the 11th hour they are still touting failed policies and ... Blah, Blah, Blah. ... Evelyn, in all honesty, doesn't this "my dad is bigger than your dad" ...
    (soc.retirement)
  • Re: Why?
    ... Why is our government still taking advice from economists that were in ... Even up till the 11th hour they are still touting failed policies and ... Blah, Blah, Blah. ... Evelyn, in all honesty, doesn't this "my dad is bigger than your dad" ...
    (soc.retirement)