<?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: about command:tr in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711692#M60729</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;tr gets its input through a pipe, try:&lt;BR /&gt;&lt;BR /&gt;cat filename | tr "[=e=]" "[e*]" &amp;gt; test.out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I usually use "tr" to trim the spaces/tabs, It is a very handy command ...&lt;BR /&gt;&lt;BR /&gt;To parse files with uneven spaces between fields&lt;BR /&gt;&lt;BR /&gt;cat filename | tr -s " "&lt;BR /&gt;&lt;BR /&gt;will trim the spaces to just one space between the fields...&lt;BR /&gt;&lt;BR /&gt;cat filename | tr -s "\t" " "&lt;BR /&gt;&lt;BR /&gt;will trim tabs and spaces between fields to just one space ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shabu</description>
    <pubDate>Fri, 26 Apr 2002 15:43:01 GMT</pubDate>
    <dc:creator>SHABU KHAN</dc:creator>
    <dc:date>2002-04-26T15:43:01Z</dc:date>
    <item>
      <title>about command:tr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711686#M60723</link>
      <description>i cant understand the function of the command tr,for example&lt;BR /&gt;there is a file:one&lt;BR /&gt;in it:&lt;BR /&gt;ie &lt;BR /&gt;iei&lt;BR /&gt;ieie&lt;BR /&gt;i am a boy&lt;BR /&gt;&lt;BR /&gt;when a use command:&lt;BR /&gt;tr "[=e=]" "[e*]" &lt;ONE&gt;two&lt;BR /&gt;then i look at file:two&lt;BR /&gt;it is the same as one,i dont know what happened&lt;/ONE&gt;</description>
      <pubDate>Fri, 26 Apr 2002 07:28:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711686#M60723</guid>
      <dc:creator>iambluegary</dc:creator>
      <dc:date>2002-04-26T07:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: about command:tr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711687#M60724</link>
      <description>HI&lt;BR /&gt;&lt;BR /&gt;This may help:-&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x061672106351d5118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x061672106351d5118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Fri, 26 Apr 2002 07:39:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711687#M60724</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-04-26T07:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: about command:tr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711688#M60725</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;could you please tell us what you tried to accomplishe?&lt;BR /&gt;&lt;BR /&gt;I can't figure out what result you tried to get.&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Fri, 26 Apr 2002 08:09:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711688#M60725</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2002-04-26T08:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: about command:tr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711689#M60726</link>
      <description>Have you read the manpage of tr?&lt;BR /&gt;&lt;BR /&gt;It translates (or in Perl-Lingo transliterates) each character of the first character set exactly with the one from the second character set.</description>
      <pubDate>Fri, 26 Apr 2002 08:34:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711689#M60726</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-04-26T08:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: about command:tr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711690#M60727</link>
      <description>The output is identical to the input because there is *nothing* to translate.&lt;BR /&gt;Your input does not have any accented variants of the charcter 'e' (e-umlaut, e-ascent, e-grave', etc).</description>
      <pubDate>Fri, 26 Apr 2002 09:03:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711690#M60727</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-04-26T09:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: about command:tr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711691#M60728</link>
      <description>May be worth reading on regular expressions for a better understanding.  I have the O'Reilly book on sed/ed and it has lots of good info on reg-expressions.  I think tr will make much more sense when you see how they work.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;Shannon&lt;BR /&gt;&lt;BR /&gt;&amp;gt; echo "Mjdsptpgt Sudlt"|tr "[b-t]" "[a-s]"&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Apr 2002 15:14:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711691#M60728</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2002-04-26T15:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: about command:tr</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711692#M60729</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;tr gets its input through a pipe, try:&lt;BR /&gt;&lt;BR /&gt;cat filename | tr "[=e=]" "[e*]" &amp;gt; test.out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I usually use "tr" to trim the spaces/tabs, It is a very handy command ...&lt;BR /&gt;&lt;BR /&gt;To parse files with uneven spaces between fields&lt;BR /&gt;&lt;BR /&gt;cat filename | tr -s " "&lt;BR /&gt;&lt;BR /&gt;will trim the spaces to just one space between the fields...&lt;BR /&gt;&lt;BR /&gt;cat filename | tr -s "\t" " "&lt;BR /&gt;&lt;BR /&gt;will trim tabs and spaces between fields to just one space ...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shabu</description>
      <pubDate>Fri, 26 Apr 2002 15:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-command-tr/m-p/2711692#M60729</guid>
      <dc:creator>SHABU KHAN</dc:creator>
      <dc:date>2002-04-26T15:43:01Z</dc:date>
    </item>
  </channel>
</rss>

