<?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: Changing a string to lower cases in korn shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952511#M927129</link>
    <description>It's much more efficient to let the shell do the work rather than a separate process:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;typeset -l VAR2&lt;BR /&gt;&lt;BR /&gt;VAR1=AbcD&lt;BR /&gt;VAR2="$VAR1"&lt;BR /&gt;echo $VAR1 $VAR2&lt;BR /&gt;AbcD abcd&lt;BR /&gt;&lt;BR /&gt;When assigning strings, it's always a good idea to use double quotes so any imbedded spaces, etc, are preserved. The typeset attribute has more than a dozen formatting options such as UPPERCASE, lowewrcase, left/right justified, zero-fill, etc. typeset is available in POSIX shells such as the HP-UX POSIX shell and ksh as well as BASH.</description>
    <pubDate>Wed, 16 Apr 2003 09:38:03 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2003-04-16T09:38:03Z</dc:date>
    <item>
      <title>Changing a string to lower cases in korn shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952504#M927122</link>
      <description>Hello,&lt;BR /&gt;I want to change the value stored in a string variable to all lower case.&lt;BR /&gt;For instance :&lt;BR /&gt;VAR1=AbcD then I want this variable becomes :&lt;BR /&gt;VAR1=abcd&lt;BR /&gt;How can I do that ?&lt;BR /&gt;Thanks in advance for your help.&lt;BR /&gt;Laurent MENEGUZY</description>
      <pubDate>Wed, 16 Apr 2003 09:07:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952504#M927122</guid>
      <dc:creator>Lorenzo Meneguzzi</dc:creator>
      <dc:date>2003-04-16T09:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a string to lower cases in korn shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952505#M927123</link>
      <description>echo test|tr "[:lower:]" "[:upper:]"&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Apr 2003 09:12:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952505#M927123</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-04-16T09:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a string to lower cases in korn shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952506#M927124</link>
      <description>echo $VAR1 |tr "[:upper:]" "[:lower:]"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 16 Apr 2003 09:13:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952506#M927124</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-04-16T09:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a string to lower cases in korn shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952507#M927125</link>
      <description>tr -s '[:upper:]' '[:lower:]'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Apr 2003 09:14:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952507#M927125</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2003-04-16T09:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a string to lower cases in korn shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952508#M927126</link>
      <description>&lt;BR /&gt;VAR1=$(echo $VAR1|tr "[:upper:]" "[:lower:]")&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Apr 2003 09:14:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952508#M927126</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-04-16T09:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a string to lower cases in korn shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952509#M927127</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Varable | tr -s "[A-Z]" "[a-z]" &lt;BR /&gt;&lt;BR /&gt;Paula&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Apr 2003 09:17:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952509#M927127</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2003-04-16T09:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a string to lower cases in korn shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952510#M927128</link>
      <description>The ideas are all good but, but a more complete solution to your problem could be:&lt;BR /&gt;&lt;BR /&gt;VAR1=`echo $VAR1 | tr -s "[A-Z]" "[a-z]"`&lt;BR /&gt;&lt;BR /&gt;Be careful wit the quotation.&lt;BR /&gt;&lt;BR /&gt;Frank</description>
      <pubDate>Wed, 16 Apr 2003 09:29:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952510#M927128</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-04-16T09:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a string to lower cases in korn shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952511#M927129</link>
      <description>It's much more efficient to let the shell do the work rather than a separate process:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;typeset -l VAR2&lt;BR /&gt;&lt;BR /&gt;VAR1=AbcD&lt;BR /&gt;VAR2="$VAR1"&lt;BR /&gt;echo $VAR1 $VAR2&lt;BR /&gt;AbcD abcd&lt;BR /&gt;&lt;BR /&gt;When assigning strings, it's always a good idea to use double quotes so any imbedded spaces, etc, are preserved. The typeset attribute has more than a dozen formatting options such as UPPERCASE, lowewrcase, left/right justified, zero-fill, etc. typeset is available in POSIX shells such as the HP-UX POSIX shell and ksh as well as BASH.</description>
      <pubDate>Wed, 16 Apr 2003 09:38:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952511#M927129</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-04-16T09:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a string to lower cases in korn shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952512#M927130</link>
      <description>Thanks for your help. It's working fine.&lt;BR /&gt;Laurent MENEGUZY</description>
      <pubDate>Wed, 16 Apr 2003 11:17:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-a-string-to-lower-cases-in-korn-shell-script/m-p/2952512#M927130</guid>
      <dc:creator>Lorenzo Meneguzzi</dc:creator>
      <dc:date>2003-04-16T11:17:51Z</dc:date>
    </item>
  </channel>
</rss>

