<?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 renaming files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199402#M680764</link>
    <description>Hello,&lt;BR /&gt;i want replace recusive all my files   data-source.xml.pass with data-source .xml&lt;BR /&gt;&lt;BR /&gt;form line command i can do it:&lt;BR /&gt;&lt;BR /&gt;filename=/u10/app/oracle/10.1.2/esbiforms/j2ee/home/config/data-sources.xml.pass&lt;BR /&gt;newv=${filename%.*}&lt;BR /&gt;echo $newv&lt;BR /&gt;/u10/app/oracle/10.1.2/esbiforms/j2ee/home/config/data-sources.xml&lt;BR /&gt;&lt;BR /&gt;but in a loop this not run for: bud sustitution&lt;BR /&gt;&lt;BR /&gt;Can you help me?&lt;BR /&gt;&lt;BR /&gt;thanks.&lt;BR /&gt;Regards.</description>
    <pubDate>Thu, 17 Sep 2009 08:41:18 GMT</pubDate>
    <dc:creator>Francesco_13</dc:creator>
    <dc:date>2009-09-17T08:41:18Z</dc:date>
    <item>
      <title>renaming files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199402#M680764</link>
      <description>Hello,&lt;BR /&gt;i want replace recusive all my files   data-source.xml.pass with data-source .xml&lt;BR /&gt;&lt;BR /&gt;form line command i can do it:&lt;BR /&gt;&lt;BR /&gt;filename=/u10/app/oracle/10.1.2/esbiforms/j2ee/home/config/data-sources.xml.pass&lt;BR /&gt;newv=${filename%.*}&lt;BR /&gt;echo $newv&lt;BR /&gt;/u10/app/oracle/10.1.2/esbiforms/j2ee/home/config/data-sources.xml&lt;BR /&gt;&lt;BR /&gt;but in a loop this not run for: bud sustitution&lt;BR /&gt;&lt;BR /&gt;Can you help me?&lt;BR /&gt;&lt;BR /&gt;thanks.&lt;BR /&gt;Regards.</description>
      <pubDate>Thu, 17 Sep 2009 08:41:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199402#M680764</guid>
      <dc:creator>Francesco_13</dc:creator>
      <dc:date>2009-09-17T08:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: renaming files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199403#M680765</link>
      <description>Hi Francesco,&lt;BR /&gt;&lt;BR /&gt;could you please show us the loop?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Thu, 17 Sep 2009 08:53:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199403#M680765</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2009-09-17T08:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: renaming files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199404#M680766</link>
      <description>Do you know what the value of $filename is when it fails?&lt;BR /&gt;I tried an empty string and one without any "." and I didn't get that "bad substitution" error.</description>
      <pubDate>Thu, 17 Sep 2009 09:11:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199404#M680766</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-09-17T09:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: renaming files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199405#M680767</link>
      <description>Hello ,&lt;BR /&gt;thi t's my loop:&lt;BR /&gt;&lt;BR /&gt;for i in `cat /home/as10g/lista_data_sources_pass.lst`&lt;BR /&gt; do&lt;BR /&gt;   filename=$i&lt;BR /&gt;   newvariable=${filename%.*.*}&lt;BR /&gt;   echo $newvariable&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;======================&lt;BR /&gt;extract &lt;BR /&gt;solpro07:/usr/local/oracle&amp;gt; cat /home/as10g/lista_data_sources_pass.lst&lt;BR /&gt;/u10/app/oracle/10.1.2/esbiforms/j2ee/home/config/data-sources.xml.pass&lt;BR /&gt;/u10/app/oracle/10.1.2/esbiforms/j2ee/OC4J_BI_Forms/config/data-sources.xml.pass&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Sep 2009 09:20:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199405#M680767</guid>
      <dc:creator>Francesco_13</dc:creator>
      <dc:date>2009-09-17T09:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: renaming files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199406#M680768</link>
      <description>Hello Dennis,&lt;BR /&gt;&lt;BR /&gt;"recambio.sh" 10 lÃ­neas, 170 caracteres&lt;BR /&gt;for i in `cat /home/as10g/lista_data_sources_pass.lst`&lt;BR /&gt; do&lt;BR /&gt;   echo $i&lt;BR /&gt;   filename=$i&lt;BR /&gt;   echo $filename&lt;BR /&gt;   echo ${filename%.*}&lt;BR /&gt;   newvariable=${filename%.*.*}&lt;BR /&gt;   echo $newvariable&lt;BR /&gt;  done&lt;BR /&gt;======&lt;BR /&gt;result:&lt;BR /&gt;======&lt;BR /&gt;solpro07:/usr/local/oracle&amp;gt; sh recambio.sh&lt;BR /&gt;/u10/app/oracle/10.1.2/esbiforms/j2ee/home/config/data-sources.xml.pass&lt;BR /&gt;/u10/app/oracle/10.1.2/esbiforms/j2ee/home/config/data-sources.xml.pass&lt;BR /&gt;recambio.sh: sustituciÃ³n errÃ³nea&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Sep 2009 09:25:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199406#M680768</guid>
      <dc:creator>Francesco_13</dc:creator>
      <dc:date>2009-09-17T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: renaming files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199407#M680769</link>
      <description>I tried your loop using sh and I can't duplicate it.&lt;BR /&gt;&lt;BR /&gt;What locale are you using?&lt;BR /&gt;echo $LANG</description>
      <pubDate>Thu, 17 Sep 2009 09:38:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199407#M680769</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-09-17T09:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: renaming files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199408#M680770</link>
      <description>Hello,&lt;BR /&gt;dont'have $LANG&lt;BR /&gt;&lt;BR /&gt;but it's all spanish&lt;BR /&gt;&lt;BR /&gt;LC_COLLATE=es_ES.ISO8859-15&lt;BR /&gt;LC_NUMERIC=es_ES.ISO8859-15&lt;BR /&gt;LC_MESSAGES=es&lt;BR /&gt;LC_MONETARY=es_ES.ISO8859-15&lt;BR /&gt;LC_TIME=es_ES.ISO8859-15&lt;BR /&gt;&lt;BR /&gt;I use Ksh&lt;BR /&gt;&lt;BR /&gt;thanks.&lt;BR /&gt;Regards.</description>
      <pubDate>Thu, 17 Sep 2009 09:54:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199408#M680770</guid>
      <dc:creator>Francesco_13</dc:creator>
      <dc:date>2009-09-17T09:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: renaming files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199409#M680771</link>
      <description>&amp;gt;but it's all Spanish&lt;BR /&gt;&lt;BR /&gt;I didn't try that exact locale before but it still doesn't fail with those.  What OS version do you have?  Any ksh patches?</description>
      <pubDate>Fri, 18 Sep 2009 08:21:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199409#M680771</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-09-18T08:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: renaming files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199410#M680772</link>
      <description>Hello ,&lt;BR /&gt;i have do it the renaming with other commands.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks to all&lt;BR /&gt;&lt;BR /&gt;Francesco</description>
      <pubDate>Fri, 18 Sep 2009 08:27:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-files/m-p/5199410#M680772</guid>
      <dc:creator>Francesco_13</dc:creator>
      <dc:date>2009-09-18T08:27:55Z</dc:date>
    </item>
  </channel>
</rss>

