<?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: Script help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936117#M929003</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The script which was given will work for evry occurence. Just try it.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
    <pubDate>Wed, 26 Mar 2003 14:31:40 GMT</pubDate>
    <dc:creator>Jean-Louis Phelix</dc:creator>
    <dc:date>2003-03-26T14:31:40Z</dc:date>
    <item>
      <title>Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936111#M928997</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;In a file, I want add a string "CC" 2 lines after a know string "B".&lt;BR /&gt;&lt;BR /&gt;Ex.:&lt;BR /&gt;&lt;BR /&gt;My original file is :&lt;BR /&gt;&lt;BR /&gt;A&lt;BR /&gt;B&lt;BR /&gt;???     --&amp;gt; unknown string&lt;BR /&gt;C&lt;BR /&gt;D&lt;BR /&gt;&lt;BR /&gt;The result would be :&lt;BR /&gt;&lt;BR /&gt;A&lt;BR /&gt;B&lt;BR /&gt;???&lt;BR /&gt;CC&lt;BR /&gt;C&lt;BR /&gt;D&lt;BR /&gt;&lt;BR /&gt;How I do this.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Frank&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Mar 2003 13:35:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936111#M928997</guid>
      <dc:creator>Francois Bariselle_3</dc:creator>
      <dc:date>2003-03-26T13:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936112#M928998</link>
      <description>You can use 'awk'&lt;BR /&gt;&lt;BR /&gt;awk '/B/ { print; getline; print; print "CC"; continu } {print}'</description>
      <pubDate>Wed, 26 Mar 2003 13:52:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936112#M928998</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-03-26T13:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936113#M928999</link>
      <description>You can use 'awk'&lt;BR /&gt;&lt;BR /&gt;awk '/B/ { print; getline; print; print "CC"; continue } {print}'</description>
      <pubDate>Wed, 26 Mar 2003 13:52:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936113#M928999</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-03-26T13:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936114#M929000</link>
      <description>You can use 'awk'&lt;BR /&gt;&lt;BR /&gt;awk '/^B/ { print; getline; print; print "CC"; continue } {print}'</description>
      <pubDate>Wed, 26 Mar 2003 13:52:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936114#M929000</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-03-26T13:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936115#M929001</link>
      <description>do you think you can use awk?  tripple post above  :)</description>
      <pubDate>Wed, 26 Mar 2003 13:58:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936115#M929001</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-03-26T13:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936116#M929002</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;There are many occurence of "B" in my file and I don't know the lines numbers. I want add "CC" 2 line after all occurence of "B"&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Frank.</description>
      <pubDate>Wed, 26 Mar 2003 14:11:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936116#M929002</guid>
      <dc:creator>Francois Bariselle_3</dc:creator>
      <dc:date>2003-03-26T14:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936117#M929003</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The script which was given will work for evry occurence. Just try it.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 26 Mar 2003 14:31:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936117#M929003</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-03-26T14:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936118#M929004</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The script which was given will work for every occurence. Just try it.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 26 Mar 2003 14:31:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936118#M929004</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-03-26T14:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936119#M929005</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Here's a 'sed' solution:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;sed '/^B/{&lt;BR /&gt;n&lt;BR /&gt;aCC&lt;BR /&gt;}' inputfile&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 27 Mar 2003 01:37:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help/m-p/2936119#M929005</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-03-27T01:37:00Z</dc:date>
    </item>
  </channel>
</rss>

