LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Blogs > JimRobinson
User Name
Password

Notices

  1. Old Comment
    Posted 07-03-2009 at 07:34 AM by gabim gabim is offline
  2. Old Comment

    Joining records using sed or awk

    Any suggestions would be greatly appreciated. We are archiving MQ messages and the messages recieved in XML format are causing the multiple records. To properly grep the file for researching, I need to have those records joined into one record. Thanks for any suggestions on this.

    for instance...
    1> <aaaaa>aabbccdd</aaaaa>
    2> <bbbbb>aabbccdd
    3> eeffgghhii
    4> jjkkllmm</bbbbb>

    I would want to join line 3 and 4 with 2 giving...
    1> <aaaaa>aaaaabbbbbbcccccdddd</aaaaa>
    2> <bbbbb>aabbccddeeffgghhiijjkkllmm</bbbbb>
    Posted 07-01-2009 at 08:48 AM by JimRobinson JimRobinson is offline

  



All times are GMT -5. The time now is 10:31 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration