<?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: Check if lower case? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343527#M191202</link>
    <description>In Shell :&lt;BR /&gt;&lt;BR /&gt;/&amp;gt;Filename1=MYFILE&lt;BR /&gt;/&amp;gt;Filename2=MyFile&lt;BR /&gt;/&amp;gt;if [ $Filename1 = $(echo $Filename1 | tr "[a-z]" "[A-Z]") ]&lt;BR /&gt;&amp;gt; then echo no lowercase&lt;BR /&gt;&amp;gt; else echo lowercase&lt;BR /&gt;&amp;gt; fi&lt;BR /&gt;no lowercase&lt;BR /&gt;/&amp;gt;if [ $Filename2 = $(echo $Filename2 | tr "[a-z]" "[A-Z]") ]&lt;BR /&gt;&amp;gt; then echo no lowercase&lt;BR /&gt;&amp;gt; else echo lowercase&lt;BR /&gt;&amp;gt; fi&lt;BR /&gt;lowercase&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
    <pubDate>Wed, 28 Jul 2004 10:50:02 GMT</pubDate>
    <dc:creator>Fred Ruffet</dc:creator>
    <dc:date>2004-07-28T10:50:02Z</dc:date>
    <item>
      <title>Check if lower case?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343526#M191201</link>
      <description>Can anyone show me a way to check if a filename has any lower case characters in it?&lt;BR /&gt;&lt;BR /&gt;I need to check before trying to uppercase the name from within a script.&lt;BR /&gt;&lt;BR /&gt;TIA and points for all responses.&lt;BR /&gt;&lt;BR /&gt;Sean&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2004 10:39:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343526#M191201</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2004-07-28T10:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Check if lower case?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343527#M191202</link>
      <description>In Shell :&lt;BR /&gt;&lt;BR /&gt;/&amp;gt;Filename1=MYFILE&lt;BR /&gt;/&amp;gt;Filename2=MyFile&lt;BR /&gt;/&amp;gt;if [ $Filename1 = $(echo $Filename1 | tr "[a-z]" "[A-Z]") ]&lt;BR /&gt;&amp;gt; then echo no lowercase&lt;BR /&gt;&amp;gt; else echo lowercase&lt;BR /&gt;&amp;gt; fi&lt;BR /&gt;no lowercase&lt;BR /&gt;/&amp;gt;if [ $Filename2 = $(echo $Filename2 | tr "[a-z]" "[A-Z]") ]&lt;BR /&gt;&amp;gt; then echo no lowercase&lt;BR /&gt;&amp;gt; else echo lowercase&lt;BR /&gt;&amp;gt; fi&lt;BR /&gt;lowercase&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Jul 2004 10:50:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343527#M191202</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-07-28T10:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Check if lower case?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343528#M191203</link>
      <description>We can detect using regex pattern class of [[:lower:]]&lt;BR /&gt;&lt;BR /&gt; A file name as TeST&lt;BR /&gt; &lt;BR /&gt; echo TeST | grep "[[:lower:]]&lt;BR /&gt;  or &lt;BR /&gt; echo TeST | grep -q "[[:lower:]]"&lt;BR /&gt; if [[ $? -eq 0 ]]; then&lt;BR /&gt;   echo "it contains lower character"&lt;BR /&gt;&lt;BR /&gt; we can rename a file as,&lt;BR /&gt;&lt;BR /&gt; echo "mv TeST `echo Test | tr -s '[:lower:]' '[:upper:]'`" | sh&lt;BR /&gt;&lt;BR /&gt; using tr command.&lt;BR /&gt;&lt;BR /&gt; where TeST file changed to TEST</description>
      <pubDate>Wed, 28 Jul 2004 10:53:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343528#M191203</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-07-28T10:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Check if lower case?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343529#M191204</link>
      <description>Hi Sean,&lt;BR /&gt;&lt;BR /&gt;i would use tr and compare two variables.&lt;BR /&gt;&lt;BR /&gt;if [ $filename = $(echo $filename | tr '[:lower:]' '[:upper:]') ]&lt;BR /&gt;then &lt;DO your="" stuff="" for="" no="" lowercase=""&gt;&lt;BR /&gt;else &lt;DO you="" stuff="" for="" lowercase=""&gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Just a quick shot. Perhaps its worth a try.&lt;BR /&gt;&lt;BR /&gt;Regards Stefan&lt;/DO&gt;&lt;/DO&gt;</description>
      <pubDate>Wed, 28 Jul 2004 10:55:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343529#M191204</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2004-07-28T10:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Check if lower case?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343530#M191205</link>
      <description>in perl :&lt;BR /&gt;&lt;BR /&gt;/&amp;gt;perl&lt;BR /&gt;while (&lt;STDIN&gt;) {&lt;BR /&gt;print "lowercase\n" if $_=~ m/[a-z]/;&lt;BR /&gt;}&lt;BR /&gt;MYFILE&lt;BR /&gt;MyFile&lt;BR /&gt;lowercase&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;&lt;/STDIN&gt;</description>
      <pubDate>Wed, 28 Jul 2004 10:56:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343530#M191205</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-07-28T10:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Check if lower case?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343531#M191206</link>
      <description>#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;FNAMES="Boo cow MOM DAD You"&lt;BR /&gt;&lt;BR /&gt;for FNAME=${FNAMES}&lt;BR /&gt; do&lt;BR /&gt;   echo "${FNAME}" | grep -q -E '.*[a-z].*'&lt;BR /&gt;   STAT=${?}&lt;BR /&gt;   if [[ ${STAT} -eq 0 ]]&lt;BR /&gt;      then&lt;BR /&gt;         echo "Lowercase found"&lt;BR /&gt;      fi&lt;BR /&gt; done&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Sep 2024 09:25:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343531#M191206</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2024-09-16T09:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Check if lower case?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343532#M191207</link>
      <description>A simple way (within ksh)- &lt;BR /&gt;&lt;BR /&gt;filename="ABcdEF"&lt;BR /&gt;typeset -u x=$filename&lt;BR /&gt;if [[ $filename != $x ]] ; then&lt;BR /&gt;echo "FILE HAS LOWERCASE IN IT!!"&lt;BR /&gt;fi&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Wed, 28 Jul 2004 10:59:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/check-if-lower-case/m-p/3343532#M191207</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-07-28T10:59:10Z</dc:date>
    </item>
  </channel>
</rss>

