Squeeze text from lines without sed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • docdiesel
    Recognized Expert Contributor
    • Aug 2007
    • 297

    Squeeze text from lines without sed

    Hi all,

    on my Linux system I got a logfile containing lines like these:

    Code:
    ab=0;cb-ok=1;valid=1;nr=23412;txt=sometext;md5=5A4D6e342...
    ab=27;cb-ok=0;valid=0;nr=8754;txt=othertext;md5=3A763C5...
    and I'd like to transfor it to this:

    Code:
    0;1;1;23412;sometext;5A4D6e342...
    27;0;0;87654;othertext;3A763C5...
    I know I could use sed to squeeze all the "variable=" parts, but is there another, maybe better way?

    ThanX,

    Bernd
Working...