<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need some help with text manupulation in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/need-some-help-with-text-manupulation/m-p/5052927#M93546</link>
    <description>awk -F: '{if(NF==1)g=$1;if(NF&amp;gt;1)printf("%s:%s\n",g,$0)}' active.txt&lt;BR /&gt;&lt;BR /&gt;gives this:&lt;BR /&gt;ALPHA:169.0.1.6:HSJFNEI43:HSJFNEI43:HGYUE9054256NFVD&lt;BR /&gt;ALPHA:169.0.1.8:KRCJFWRT01:KRCJFWRT01:HGYUE9054256NFVD&lt;BR /&gt;BETA:169.0.1.9:HSJFNEI43:HSJFNEI43:HGYUE9054256NFVD&lt;BR /&gt;BETA:169.0.1.10:HSJFNEI43:HSJFNEI43:HGYUE9054256NFVD&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 14 Jun 2007 03:57:09 GMT</pubDate>
    <dc:creator>Steve Lewis</dc:creator>
    <dc:date>2007-06-14T03:57:09Z</dc:date>
    <item>
      <title>Need some help with text manupulation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-some-help-with-text-manupulation/m-p/5052926#M93545</link>
      <description>&lt;!--!*#--&gt;Filename active.txt is the original file and Filename active.new.txt contains the desired o/p.&lt;BR /&gt; &lt;BR /&gt;In the file ALPHA ,  BETA , KAPPA are the group names and the ip address and other text just below these group names are specs related to them.&lt;BR /&gt; &lt;BR /&gt;ALPHA    &amp;lt;--- group name&lt;BR /&gt;169.0.1.6:HSJFNEI43:HSJFNEI43:HGYUE9054256NFVD       &amp;lt;---spec data &lt;BR /&gt;169.0.1.8:KRCJFWRT01:KRCJFWRT01:HGYUE9054256NFVD    &amp;lt;---spec data &lt;BR /&gt; &lt;BR /&gt;BETA&lt;BR /&gt;169.0.1.9:HSJFNEI43:HSJFNEI43:HGYUE9054256NFVD&lt;BR /&gt;169.0.1.10:HSJFNEI43:HSJFNEI43:HGYUE9054256NFVD&lt;BR /&gt; &lt;BR /&gt;Could you please help me make a script which can take the file active.txt as input file like below: &lt;BR /&gt; &lt;BR /&gt;cat active.txt &lt;BR /&gt; &lt;BR /&gt;and perform some editing on the file such that  &lt;BR /&gt;the the group name which is over the top of the spec data should get embedded with each line of spec data . like this &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;ALPHA:169.0.1.6:HSJFNEI43:HSJFNEI43:HGYUE9054256NFVD&lt;BR /&gt;ALPHA:169.0.1.8:HSJFNEI43:HSJFNEI43:HGYUE9054256NFVD &lt;BR /&gt;&lt;BR /&gt;BETA:169.0.1.9:HSJFNEI43:HSJFNEI43:HGYUE9054256NFVD&lt;BR /&gt;BETA:169.0.1.10:HSJFNEI43:HSJFNEI43:HGYUE9054256NFVD</description>
      <pubDate>Thu, 14 Jun 2007 03:32:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-some-help-with-text-manupulation/m-p/5052926#M93545</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2007-06-14T03:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with text manupulation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-some-help-with-text-manupulation/m-p/5052927#M93546</link>
      <description>awk -F: '{if(NF==1)g=$1;if(NF&amp;gt;1)printf("%s:%s\n",g,$0)}' active.txt&lt;BR /&gt;&lt;BR /&gt;gives this:&lt;BR /&gt;ALPHA:169.0.1.6:HSJFNEI43:HSJFNEI43:HGYUE9054256NFVD&lt;BR /&gt;ALPHA:169.0.1.8:KRCJFWRT01:KRCJFWRT01:HGYUE9054256NFVD&lt;BR /&gt;BETA:169.0.1.9:HSJFNEI43:HSJFNEI43:HGYUE9054256NFVD&lt;BR /&gt;BETA:169.0.1.10:HSJFNEI43:HSJFNEI43:HGYUE9054256NFVD&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jun 2007 03:57:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-some-help-with-text-manupulation/m-p/5052927#M93546</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2007-06-14T03:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need some help with text manupulation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-some-help-with-text-manupulation/m-p/5052928#M93547</link>
      <description>Thanks Steve, Your response was right on target.</description>
      <pubDate>Sun, 17 Jun 2007 21:50:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-some-help-with-text-manupulation/m-p/5052928#M93547</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2007-06-17T21:50:51Z</dc:date>
    </item>
  </channel>
</rss>

