<?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 Upper Case - Lower Case Question - in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603823#M233333</link>
    <description>I have a file that contains a number of entries that are in upper case and others are in lower case (see example below).  How can I use a unix command(s) to change all entries to lower case?&lt;BR /&gt;&lt;BR /&gt;hostname1.domain.com&lt;BR /&gt;HOSTNAME2.domain.com&lt;BR /&gt;HOSTNAME3.domain.com&lt;BR /&gt;hostname4.domain.com&lt;BR /&gt;HOSTNAME5.domain.com</description>
    <pubDate>Mon, 15 Aug 2005 06:43:14 GMT</pubDate>
    <dc:creator>Rob Johnson_3</dc:creator>
    <dc:date>2005-08-15T06:43:14Z</dc:date>
    <item>
      <title>Upper Case - Lower Case Question -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603823#M233333</link>
      <description>I have a file that contains a number of entries that are in upper case and others are in lower case (see example below).  How can I use a unix command(s) to change all entries to lower case?&lt;BR /&gt;&lt;BR /&gt;hostname1.domain.com&lt;BR /&gt;HOSTNAME2.domain.com&lt;BR /&gt;HOSTNAME3.domain.com&lt;BR /&gt;hostname4.domain.com&lt;BR /&gt;HOSTNAME5.domain.com</description>
      <pubDate>Mon, 15 Aug 2005 06:43:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603823#M233333</guid>
      <dc:creator>Rob Johnson_3</dc:creator>
      <dc:date>2005-08-15T06:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Case - Lower Case Question -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603824#M233334</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt; cat &lt;FILE&gt; | tr [:upper:] [:lower:] &lt;BR /&gt;&lt;BR /&gt;See the man page for tr&lt;BR /&gt;&lt;/FILE&gt;</description>
      <pubDate>Mon, 15 Aug 2005 06:48:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603824#M233334</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2005-08-15T06:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Case - Lower Case Question -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603825#M233335</link>
      <description>&lt;BR /&gt;tr "[:lower:]" "[:upper:]" &lt;FILE1&gt;file2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;/FILE1&gt;</description>
      <pubDate>Mon, 15 Aug 2005 06:48:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603825#M233335</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-08-15T06:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Case - Lower Case Question -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603826#M233336</link>
      <description>Sorry - that was backwards - try this:&lt;BR /&gt;&lt;BR /&gt;tr "[:upper:]" "[:lower:]" &lt;FILE1&gt;file2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;/FILE1&gt;</description>
      <pubDate>Mon, 15 Aug 2005 06:49:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603826#M233336</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-08-15T06:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Case - Lower Case Question -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603827#M233337</link>
      <description>I did &lt;BR /&gt;cat file|tr "[:upper:]" "[:lower:]" &amp;gt; file1&lt;BR /&gt;and it works fine.&lt;BR /&gt;&lt;BR /&gt;I love this forum.  Thanks to all of you, I always get a quick, accurate response to my posts!!!!!!!!!!!!!!!!!!!!!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Aug 2005 07:51:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603827#M233337</guid>
      <dc:creator>Rob Johnson_3</dc:creator>
      <dc:date>2005-08-15T07:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Case - Lower Case Question -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603828#M233338</link>
      <description>Rob,&lt;BR /&gt;&lt;BR /&gt;As an additon to other replies another fantastic links which may help you;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=694878" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=694878&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=840763" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=840763&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=87241" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=87241&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck,</description>
      <pubDate>Mon, 15 Aug 2005 08:27:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603828#M233338</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-08-15T08:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Case - Lower Case Question -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603829#M233339</link>
      <description>Yet another way to do the same would be to use an awk construct like:&lt;BR /&gt;&lt;BR /&gt;# awk '{print tolower($0)}' &lt;FILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Tue, 16 Aug 2005 08:46:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603829#M233339</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-08-16T08:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Case - Lower Case Question -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603830#M233340</link>
      <description>And since you would like to save your results into an output file...&lt;BR /&gt;&lt;BR /&gt;# awk '{print tolower($0)}' input_file &amp;gt; output_file&lt;BR /&gt;&lt;BR /&gt;Also can be done from within ex...no output file needed as ex will modify the exisiting one.&lt;BR /&gt;&lt;BR /&gt;# ex -s input_file &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;&amp;gt; %s/.*/\L&amp;amp;/&lt;BR /&gt;&amp;gt; x&lt;BR /&gt;&amp;gt; EOF&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Tue, 16 Aug 2005 09:01:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603830#M233340</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-08-16T09:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Case - Lower Case Question -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603831#M233341</link>
      <description>I use a script to do the work.&lt;BR /&gt;&lt;BR /&gt;Here's the script.&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;VAR=$*&lt;BR /&gt;LOWER=`echo $VAR | tr "[A-Z]" "[a-z]" `&lt;BR /&gt;echo $LOWER&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;Example:  &lt;BR /&gt;mystringlower=`lowercase.sh $1`&lt;BR /&gt;&lt;BR /&gt;Here's a script for upper case:&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;VAR=$*&lt;BR /&gt;UPPER=`echo $VAR | tr "[a-z]" "[A-Z]" `&lt;BR /&gt;echo $UPPER&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2005 09:29:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603831#M233341</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2005-09-12T09:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Case - Lower Case Question -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603832#M233342</link>
      <description>I just re-read your post and my scripts are not applicable for converting a file.  Sorry.  The other solutions will work.&lt;BR /&gt;&lt;BR /&gt;jack...</description>
      <pubDate>Mon, 12 Sep 2005 09:31:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603832#M233342</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2005-09-12T09:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Upper Case - Lower Case Question -</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603833#M233343</link>
      <description>Hi Rob , &lt;BR /&gt;&lt;BR /&gt;assuming your file name is file1.txt&lt;BR /&gt;&lt;BR /&gt;# tr "[:upper:]" "[:lower"] &amp;lt; file1.txt &amp;gt; file2.txt&lt;BR /&gt;&lt;BR /&gt;check :&lt;BR /&gt;# cat file2.txt&lt;BR /&gt;&lt;BR /&gt;hostname1.domain.com&lt;BR /&gt;hostname2.domain.com&lt;BR /&gt;hostname3.domain.com&lt;BR /&gt;hostname4.domain.com&lt;BR /&gt;hostname5.domain.com&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Sep 2005 09:46:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/upper-case-lower-case-question/m-p/3603833#M233343</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-09-12T09:46:24Z</dc:date>
    </item>
  </channel>
</rss>

