<?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 help script sed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-sed/m-p/5004736#M425181</link>
    <description>Helo I need insert a [INTRO] after of flag }; :&lt;BR /&gt;in file test.conf&lt;BR /&gt;I execute : cat test.conf | sed "/^$/d" | sed "s/^};/};\n/g"&lt;BR /&gt;&lt;BR /&gt;\n  ---&amp;gt; [INTRO] its no work&lt;BR /&gt;&lt;BR /&gt;the file is &lt;BR /&gt;cat test.conf:&lt;BR /&gt;};&lt;BR /&gt;zone "10.1.1.11.in-addr.arpa" in {&lt;BR /&gt;             type master;&lt;BR /&gt;             notify no;&lt;BR /&gt;             file "rev/101.101.102.in-addr.arpa";&lt;BR /&gt;};&lt;BR /&gt;zone "10.1.1.11.in-addr.arpa" in {&lt;BR /&gt;             type master;&lt;BR /&gt;             notify no;&lt;BR /&gt;             file "rev/10.1.1.12.in-addr.arpa";&lt;BR /&gt;};&lt;BR /&gt;zone "10.1.12.in-addr.arpa" in {&lt;BR /&gt;             type master;&lt;BR /&gt;             notify no;&lt;BR /&gt;             file "rev/10.1.1.11.in-addr.arpa";&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the exit would have to be:&lt;BR /&gt;cat test.conf&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;zone "10.1.1.11.in-addr.arpa" in {&lt;BR /&gt;             type master;&lt;BR /&gt;             notify no;&lt;BR /&gt;             file "rev/101.101.102.in-addr.arpa";&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;zone "10.1.1.11.in-addr.arpa" in {&lt;BR /&gt;             type master;&lt;BR /&gt;             notify no;&lt;BR /&gt;             file "rev/10.1.1.12.in-addr.arpa";&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;zone "10.1.12.in-addr.arpa" in {&lt;BR /&gt;             type master;&lt;BR /&gt;             notify no;&lt;BR /&gt;             file "rev/10.1.1.11.in-addr.arpa";&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 21 Sep 2006 14:52:47 GMT</pubDate>
    <dc:creator>Jairo Campana</dc:creator>
    <dc:date>2006-09-21T14:52:47Z</dc:date>
    <item>
      <title>help script sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-sed/m-p/5004736#M425181</link>
      <description>Helo I need insert a [INTRO] after of flag }; :&lt;BR /&gt;in file test.conf&lt;BR /&gt;I execute : cat test.conf | sed "/^$/d" | sed "s/^};/};\n/g"&lt;BR /&gt;&lt;BR /&gt;\n  ---&amp;gt; [INTRO] its no work&lt;BR /&gt;&lt;BR /&gt;the file is &lt;BR /&gt;cat test.conf:&lt;BR /&gt;};&lt;BR /&gt;zone "10.1.1.11.in-addr.arpa" in {&lt;BR /&gt;             type master;&lt;BR /&gt;             notify no;&lt;BR /&gt;             file "rev/101.101.102.in-addr.arpa";&lt;BR /&gt;};&lt;BR /&gt;zone "10.1.1.11.in-addr.arpa" in {&lt;BR /&gt;             type master;&lt;BR /&gt;             notify no;&lt;BR /&gt;             file "rev/10.1.1.12.in-addr.arpa";&lt;BR /&gt;};&lt;BR /&gt;zone "10.1.12.in-addr.arpa" in {&lt;BR /&gt;             type master;&lt;BR /&gt;             notify no;&lt;BR /&gt;             file "rev/10.1.1.11.in-addr.arpa";&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the exit would have to be:&lt;BR /&gt;cat test.conf&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;zone "10.1.1.11.in-addr.arpa" in {&lt;BR /&gt;             type master;&lt;BR /&gt;             notify no;&lt;BR /&gt;             file "rev/101.101.102.in-addr.arpa";&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;zone "10.1.1.11.in-addr.arpa" in {&lt;BR /&gt;             type master;&lt;BR /&gt;             notify no;&lt;BR /&gt;             file "rev/10.1.1.12.in-addr.arpa";&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;zone "10.1.12.in-addr.arpa" in {&lt;BR /&gt;             type master;&lt;BR /&gt;             notify no;&lt;BR /&gt;             file "rev/10.1.1.11.in-addr.arpa";&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Sep 2006 14:52:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-sed/m-p/5004736#M425181</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2006-09-21T14:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: help script sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-sed/m-p/5004737#M425182</link>
      <description>give the sed script below a try.&lt;BR /&gt;&lt;BR /&gt;sed '{&lt;BR /&gt;/^$/d&lt;BR /&gt;/^};$/a\&lt;BR /&gt;&lt;BR /&gt;}' infile</description>
      <pubDate>Thu, 21 Sep 2006 15:25:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-sed/m-p/5004737#M425182</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-09-21T15:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: help script sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-sed/m-p/5004738#M425183</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;How about this approach:&lt;BR /&gt;&lt;BR /&gt;# perl -pe 's/^\s+$//;s/^};/};\\n/g;s/\\n/\n/g;' file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 21 Sep 2006 15:35:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-sed/m-p/5004738#M425183</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-09-21T15:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: help script sed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-script-sed/m-p/5004739#M425184</link>
      <description>solved , thanks</description>
      <pubDate>Fri, 22 Sep 2006 17:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-script-sed/m-p/5004739#M425184</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2006-09-22T17:27:14Z</dc:date>
    </item>
  </channel>
</rss>

