<?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: Find and replace the word in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/find-and-replace-the-word/m-p/4025502#M37909</link>
    <description>Hi amit27k&lt;BR /&gt;&lt;BR /&gt;welcome to the ITRC Forum.&lt;BR /&gt;&lt;BR /&gt;Could you supply some more information. Maybe you could post a part of your file and explain what you want to exchange.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Geni</description>
    <pubDate>Sun, 24 Jun 2007 04:33:17 GMT</pubDate>
    <dc:creator>Heinz W Genhart</dc:creator>
    <dc:date>2007-06-24T04:33:17Z</dc:date>
    <item>
      <title>Find and replace the word</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-and-replace-the-word/m-p/4025501#M37908</link>
      <description>I have to write a script to find different  word in a file and replace all the words into a sequential array.</description>
      <pubDate>Sun, 24 Jun 2007 00:11:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-and-replace-the-word/m-p/4025501#M37908</guid>
      <dc:creator>amit27k</dc:creator>
      <dc:date>2007-06-24T00:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Find and replace the word</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-and-replace-the-word/m-p/4025502#M37909</link>
      <description>Hi amit27k&lt;BR /&gt;&lt;BR /&gt;welcome to the ITRC Forum.&lt;BR /&gt;&lt;BR /&gt;Could you supply some more information. Maybe you could post a part of your file and explain what you want to exchange.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;Geni</description>
      <pubDate>Sun, 24 Jun 2007 04:33:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-and-replace-the-word/m-p/4025502#M37909</guid>
      <dc:creator>Heinz W Genhart</dc:creator>
      <dc:date>2007-06-24T04:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find and replace the word</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-and-replace-the-word/m-p/4025503#M37910</link>
      <description>Hello amit,&lt;BR /&gt;&lt;BR /&gt;Welcome to the OpenVMS ITRC Forum.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I have to write a script to find different word in a file and replace all the words into a sequential array.&lt;BR /&gt;&lt;BR /&gt;Please explain to us WHY you have to do this and perhpas WHICH TOOLS are at your disposal.&lt;BR /&gt;&lt;BR /&gt;What is a 'word' in you world? (any combination of characters outside whitespace?)&lt;BR /&gt;What is a sequential array in your world?&lt;BR /&gt;(In my world an array is a memory structure, for you perhaps just an other flat file ?)&lt;BR /&gt;&lt;BR /&gt;'Replace' in my world means to put something in the place of something else. So when we find a word, what will be replaced?&lt;BR /&gt;&lt;BR /&gt;What problem are you trying to solve?&lt;BR /&gt;- world hunger?&lt;BR /&gt;- a homework question?&lt;BR /&gt;- a serious business problem?&lt;BR /&gt;&lt;BR /&gt;perl -ne "chomp; $w{$_}++ foreach split /\W+/} {print qq($w{$_}:$_\n) foreach (sort keys %w)" login.com&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Sun, 24 Jun 2007 10:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-and-replace-the-word/m-p/4025503#M37910</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-06-24T10:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Find and replace the word</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/find-and-replace-the-word/m-p/4025504#M37911</link>
      <description>Is this a global substitute? Here's a DCL solution using TPU&lt;BR /&gt;&lt;BR /&gt;$ IF p1.EQS."" THEN INQUIRE p1 "Word to be replaced"&lt;BR /&gt;$ IF p2.EQS."" THEN INQUIRE p2 "Word to replace it with"&lt;BR /&gt;$ IF p3.EQS."" THEN INQUIRE p3 "File to replace it in"&lt;BR /&gt;$ ws="WRITE SYS$OUTPUT"&lt;BR /&gt;$ PIPE ws "EVE_GLOBAL_REPLACE(""''p1'"", ""''p2'"");" | -&lt;BR /&gt;       EDITX/TPU/NODISPLAY/COMMAND=SYS$PIPE: 'p3'&lt;BR /&gt;$ EXIT&lt;BR /&gt;</description>
      <pubDate>Sun, 24 Jun 2007 19:03:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/find-and-replace-the-word/m-p/4025504#M37911</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-06-24T19:03:42Z</dc:date>
    </item>
  </channel>
</rss>

