<?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 change characters in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083419#M143187</link>
    <description>is there any command that can change all the words (eg. yes ) in a file to other words ( eg. no ) ?&lt;BR /&gt;&lt;BR /&gt;# vi abc.txt&lt;BR /&gt;&lt;BR /&gt;1. yes &lt;BR /&gt;2. yes&lt;BR /&gt;3. yes&lt;BR /&gt;&lt;BR /&gt;change to &lt;BR /&gt;&lt;BR /&gt;vi abc.txt&lt;BR /&gt;1. no&lt;BR /&gt;2. no&lt;BR /&gt;3. no</description>
    <pubDate>Thu, 02 Oct 2003 01:12:03 GMT</pubDate>
    <dc:creator>juno2</dc:creator>
    <dc:date>2003-10-02T01:12:03Z</dc:date>
    <item>
      <title>change characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083419#M143187</link>
      <description>is there any command that can change all the words (eg. yes ) in a file to other words ( eg. no ) ?&lt;BR /&gt;&lt;BR /&gt;# vi abc.txt&lt;BR /&gt;&lt;BR /&gt;1. yes &lt;BR /&gt;2. yes&lt;BR /&gt;3. yes&lt;BR /&gt;&lt;BR /&gt;change to &lt;BR /&gt;&lt;BR /&gt;vi abc.txt&lt;BR /&gt;1. no&lt;BR /&gt;2. no&lt;BR /&gt;3. no</description>
      <pubDate>Thu, 02 Oct 2003 01:12:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083419#M143187</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-10-02T01:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: change characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083420#M143188</link>
      <description>Yes,run&lt;BR /&gt;sed 's/yes/no/g' abc.txt &amp;gt;abc1.txt&lt;BR /&gt;then move the fine back&lt;BR /&gt;mv abc1.txt abc.txt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Rajeev</description>
      <pubDate>Thu, 02 Oct 2003 01:17:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083420#M143188</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-10-02T01:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: change characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083421#M143189</link>
      <description>Just a slightly different version from inside the file. This is for occurances on all lines. If it is only the first occurance, the drop the 'g' at the end.&lt;BR /&gt;&lt;BR /&gt;# vi abc.txt&lt;BR /&gt;&lt;BR /&gt;:1,$s/yes/no/g&lt;BR /&gt;ESC&lt;BR /&gt;:x!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2003 01:31:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083421#M143189</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-10-02T01:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: change characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083422#M143190</link>
      <description>thx all</description>
      <pubDate>Thu, 02 Oct 2003 02:26:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083422#M143190</guid>
      <dc:creator>juno2</dc:creator>
      <dc:date>2003-10-02T02:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: change characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083423#M143191</link>
      <description>You should assign points to the above answerers.</description>
      <pubDate>Thu, 02 Oct 2003 08:20:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083423#M143191</guid>
      <dc:creator>Stuart Abramson_2</dc:creator>
      <dc:date>2003-10-02T08:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: change characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083424#M143192</link>
      <description>tr 'yes' 'no' &amp;lt; abc.txt &amp;gt; new_abc.txt&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Oct 2003 08:29:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083424#M143192</guid>
      <dc:creator>Paddy_1</dc:creator>
      <dc:date>2003-10-02T08:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: change characters</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083425#M143193</link>
      <description>1. All above change *every* occurance of 'yes' to 'no', also in 'abcyesdo'&lt;BR /&gt;2. The 'tr' example is plain wrong, because it translates *characters* and not patterns:&lt;BR /&gt; &lt;BR /&gt;lep a5:/pro/tu/lep/4gl/sql 115 &amp;gt; cat | tr 'yes' 'no'&lt;BR /&gt;aloha&lt;BR /&gt;aloha&lt;BR /&gt;yes, I am&lt;BR /&gt;nos, I am&lt;BR /&gt;no, I'm not&lt;BR /&gt;no, I'm not&lt;BR /&gt;yyyyy&lt;BR /&gt;nnnnn&lt;BR /&gt;ebebebe&lt;BR /&gt;obobobo&lt;BR /&gt;enenene&lt;BR /&gt;ononono&lt;BR /&gt;lep a5:/pro/tu/lep/4gl/sql 116 &amp;gt;&lt;BR /&gt; &lt;BR /&gt;3. use (a safe re in) perl&lt;BR /&gt; &lt;BR /&gt;perl -pi -e's/\byes\b/no/g' my_file&lt;BR /&gt; &lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Thu, 02 Oct 2003 10:04:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/change-characters/m-p/3083425#M143193</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-10-02T10:04:32Z</dc:date>
    </item>
  </channel>
</rss>

