<?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: HPUX commands? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-commands/m-p/2498652#M830834</link>
    <description>Hello Chin,&lt;BR /&gt;&lt;BR /&gt;why not using "ed"?&lt;BR /&gt;&lt;BR /&gt;find . -exec    ed -e '1,$s/\$HOSTNAME/\$BAAN/g' -e'1,$w' {} ";"&lt;BR /&gt;&lt;BR /&gt;that should do the trick...&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;   Wodisch</description>
    <pubDate>Wed, 28 Feb 2001 21:56:17 GMT</pubDate>
    <dc:creator>Wodisch</dc:creator>
    <dc:date>2001-02-28T21:56:17Z</dc:date>
    <item>
      <title>HPUX commands?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-commands/m-p/2498649#M830831</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;What are the commands that can be used if I wanna to find certain words and then need to replace that words with the new words.&lt;BR /&gt;&lt;BR /&gt;Example, testing1.txt. Inside the testing1.txt has many of "$HOSTNAME" I wanna to replace the "$HOSTNAME" to "$BAAN" for example.&lt;BR /&gt;&lt;BR /&gt;I should used the command like find ./-name..?&lt;BR /&gt;&lt;BR /&gt;Maybe I need the HPUX command for replace the word?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance for whom help me.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2001 06:05:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-commands/m-p/2498649#M830831</guid>
      <dc:creator>Chin Meng</dc:creator>
      <dc:date>2001-02-27T06:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX commands?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-commands/m-p/2498650#M830832</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;To change text in a file, you should use 'sed'.&lt;BR /&gt;&lt;BR /&gt;cat yourfile | sed -e 's/\$HOSTNAME/\$BAAN/g' &amp;gt; yourfile.new&lt;BR /&gt;&lt;BR /&gt;should do the job. The 's' in the sed command means 'substitute' and the trailing 'g' means 'globally' (ie every occurence on a line).&lt;BR /&gt;&lt;BR /&gt;The stuff between the slashes is what and to what you want to change.&lt;BR /&gt;&lt;BR /&gt;See the sed(1) manpage for more info on sed and the regexp(5) manpage for info on regular expressions.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Rik&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2001 06:17:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-commands/m-p/2498650#M830832</guid>
      <dc:creator>RikTytgat</dc:creator>
      <dc:date>2001-02-27T06:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX commands?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-commands/m-p/2498651#M830833</link>
      <description>Hi Use this line of sed to substitute:&lt;BR /&gt;cat yourfile | sed  's, \$HOSTNAME, i\ \$BAAN,g' &amp;gt; yourfile.new</description>
      <pubDate>Tue, 27 Feb 2001 14:55:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-commands/m-p/2498651#M830833</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2001-02-27T14:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX commands?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-commands/m-p/2498652#M830834</link>
      <description>Hello Chin,&lt;BR /&gt;&lt;BR /&gt;why not using "ed"?&lt;BR /&gt;&lt;BR /&gt;find . -exec    ed -e '1,$s/\$HOSTNAME/\$BAAN/g' -e'1,$w' {} ";"&lt;BR /&gt;&lt;BR /&gt;that should do the trick...&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;   Wodisch</description>
      <pubDate>Wed, 28 Feb 2001 21:56:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-commands/m-p/2498652#M830834</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-02-28T21:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: HPUX commands?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hpux-commands/m-p/2498653#M830835</link>
      <description>I opt for the use of sed.&lt;BR /&gt;&lt;BR /&gt;cat file | sed -e s/pattern1/pattern2/g &amp;gt; newfile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Feb 2001 22:07:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hpux-commands/m-p/2498653#M830835</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2001-02-28T22:07:51Z</dc:date>
    </item>
  </channel>
</rss>

