<?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: Name Changing in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889850#M819293</link>
    <description>Hi, Jean-Louis!&lt;BR /&gt;&lt;BR /&gt;[NIT-PICK MODE ON]&lt;BR /&gt;&lt;BR /&gt;What happens with e.g. "aaa111"?&lt;BR /&gt;&lt;BR /&gt;[NIT-PICK MODE OFF]&lt;BR /&gt;&lt;BR /&gt;:-)&lt;BR /&gt;Dietmar.</description>
    <pubDate>Fri, 24 Jan 2003 10:33:00 GMT</pubDate>
    <dc:creator>Dietmar Konermann</dc:creator>
    <dc:date>2003-01-24T10:33:00Z</dc:date>
    <item>
      <title>Name Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889845#M819288</link>
      <description>I have a dilemia. I have a lot of files with mixed cases (upper and lower) (Example: fileEXAMPLE.SH, TESTfile.sh). I need to write a script to insert underscores between the case changes (Example: File named fileEXAMPLE.SH would change to file_EXAMPLE.SH). Can anyone help??&lt;BR /&gt;&lt;BR /&gt;EDIT:&lt;BR /&gt;Script needs to be in the UNIX Korn Shell.</description>
      <pubDate>Thu, 23 Jan 2003 23:45:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889845#M819288</guid>
      <dc:creator>Edward Smith_1</dc:creator>
      <dc:date>2003-01-23T23:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Name Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889846#M819289</link>
      <description>The korn shell does not have real regular expressions...  so I think the task would be difficult.&lt;BR /&gt;&lt;BR /&gt;I would use the sed to do the actual replacement. &lt;BR /&gt;&lt;BR /&gt;sed -e 's/\(^[a-z][a-z]*\)\([A-Z][A-Z]*\)/\1_\2/g' -e 's/\(^[A-Z][A-Z]*\)\([a-z][a-z]*\)/\1_\2/g'&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.</description>
      <pubDate>Fri, 24 Jan 2003 09:30:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889846#M819289</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-01-24T09:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Name Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889847#M819290</link>
      <description>Oops, just saw that I left the '^' in the expressions. You should leave it the case changes more than once in a file name and you want multiple '_'.</description>
      <pubDate>Fri, 24 Jan 2003 09:43:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889847#M819290</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-01-24T09:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Name Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889848#M819291</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Perhaps a shorter variant of Dietmar solution :&lt;BR /&gt;&lt;BR /&gt;sed -e 's/[a-z][a-z]*/&amp;amp;_/g' -e 's/[A-Z][A-Z]*/&amp;amp;_/g' -e 's/_$//'&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 24 Jan 2003 10:17:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889848#M819291</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-01-24T10:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Name Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889849#M819292</link>
      <description>Sorry ... Dietmar solution seems better, because I have a problem with dots ! Although this one is not genral but works ...&lt;BR /&gt;&lt;BR /&gt;sed -e 's/[a-z][a-z]*/&amp;amp;_/g' -e 's/[A-Z][A-Z]*/&amp;amp;_/g' -e 's/_$//' -e 's/_\././'&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Fri, 24 Jan 2003 10:23:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889849#M819292</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-01-24T10:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Name Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889850#M819293</link>
      <description>Hi, Jean-Louis!&lt;BR /&gt;&lt;BR /&gt;[NIT-PICK MODE ON]&lt;BR /&gt;&lt;BR /&gt;What happens with e.g. "aaa111"?&lt;BR /&gt;&lt;BR /&gt;[NIT-PICK MODE OFF]&lt;BR /&gt;&lt;BR /&gt;:-)&lt;BR /&gt;Dietmar.</description>
      <pubDate>Fri, 24 Jan 2003 10:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889850#M819293</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-01-24T10:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Name Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889851#M819294</link>
      <description>Well Dietmar ... I could perhaps simply admit that your solution works and mine doesn't ? Or I could say that I only wanted to demonstrate the use of '&amp;amp;' :^) ...&lt;BR /&gt;&lt;BR /&gt;By the way, I wanted to tell you that I apreciate a lot your contributions to this forum. Fast and efficient !&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Fri, 24 Jan 2003 11:20:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889851#M819294</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-01-24T11:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Name Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889852#M819295</link>
      <description>Dietmar:&lt;BR /&gt;&lt;BR /&gt;[NIT-NIT-PICK MODE ON]&lt;BR /&gt;&lt;BR /&gt;Where's the case change in "aaa111"?&lt;BR /&gt;&lt;BR /&gt;[NIT-NIT-PICK MODE OFF]&lt;BR /&gt;&lt;BR /&gt;;)</description>
      <pubDate>Fri, 24 Jan 2003 18:26:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889852#M819295</guid>
      <dc:creator>W.C. Epperson</dc:creator>
      <dc:date>2003-01-24T18:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Name Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889853#M819296</link>
      <description>Excuse me! Relational expressions are certainly part of and supported by Korn-shell. Reference the O'Reilly Korn-Shell Programming book.</description>
      <pubDate>Fri, 24 Jan 2003 19:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889853#M819296</guid>
      <dc:creator>Jack Werner</dc:creator>
      <dc:date>2003-01-24T19:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Name Changing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889854#M819297</link>
      <description>just for another perspective, i whipped up a little simple perl script which does this same thing, which a few checks... &lt;BR /&gt;&lt;BR /&gt;if you like...&lt;BR /&gt;&lt;BR /&gt;the file is already in UNIX... don't forget to change the directory of perl on the first line...&lt;BR /&gt;&lt;BR /&gt;ciao&lt;BR /&gt;&lt;BR /&gt;jerome&lt;BR /&gt;&lt;BR /&gt;EDIT&lt;BR /&gt;the script can be run from ksh  ;)&lt;BR /&gt;&lt;BR /&gt;see attached</description>
      <pubDate>Wed, 29 Jan 2003 14:23:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-changing/m-p/2889854#M819297</guid>
      <dc:creator>Jerome Salyers</dc:creator>
      <dc:date>2003-01-29T14:23:00Z</dc:date>
    </item>
  </channel>
</rss>

