<?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: How to rename 10000 files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-rename-10000-files/m-p/5030918#M430811</link>
    <description>Something like this should get you started:&lt;BR /&gt;&lt;BR /&gt;ls *.htm | while read X&lt;BR /&gt;  do&lt;BR /&gt;     NEWNAME=${X}l&lt;BR /&gt;     if [[ ! -f ${NEWNAME} ]]&lt;BR /&gt;       then&lt;BR /&gt;         mv ${X} ${NEWNAME}&lt;BR /&gt;       else&lt;BR /&gt;         echo "${NEWNAME} already exists." &amp;gt;&amp;amp;2&lt;BR /&gt;       fi&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Because you have some many *.htm files in one directory, you may need to change the ls *.htm to something like ls [a-g]*.htm and do only a portion of themn at a time.&lt;BR /&gt;</description>
    <pubDate>Tue, 27 Feb 2007 14:35:29 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2007-02-27T14:35:29Z</dc:date>
    <item>
      <title>How to rename 10000 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-rename-10000-files/m-p/5030915#M430808</link>
      <description>Hi, &lt;BR /&gt;I have 10000 file named *.htm in one directory.&lt;BR /&gt;and I need to rename these files from *.htm to *.html &lt;BR /&gt; &lt;BR /&gt;How can i remane all these files? &lt;BR /&gt; &lt;BR /&gt;Please suggest &lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2007 14:28:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-rename-10000-files/m-p/5030915#M430808</guid>
      <dc:creator>praveen..</dc:creator>
      <dc:date>2007-02-27T14:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename 10000 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-rename-10000-files/m-p/5030916#M430809</link>
      <description>Something like this from the # should work:&lt;BR /&gt;&lt;BR /&gt;cd /dir&lt;BR /&gt;for FILE in *.htm&lt;BR /&gt;do&lt;BR /&gt;  mv ${FILE} ${FILE}l&lt;BR /&gt;done</description>
      <pubDate>Tue, 27 Feb 2007 14:30:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-rename-10000-files/m-p/5030916#M430809</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-02-27T14:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename 10000 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-rename-10000-files/m-p/5030917#M430810</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My way:&lt;BR /&gt;&lt;BR /&gt;ls *.htm | awk -F "." '{print $1}' | while read vFile&lt;BR /&gt;do&lt;BR /&gt;mv $vFile.htm $vFile.html&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;XG.-</description>
      <pubDate>Tue, 27 Feb 2007 14:35:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-rename-10000-files/m-p/5030917#M430810</guid>
      <dc:creator>Xavier Gutierrez_2</dc:creator>
      <dc:date>2007-02-27T14:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename 10000 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-rename-10000-files/m-p/5030918#M430811</link>
      <description>Something like this should get you started:&lt;BR /&gt;&lt;BR /&gt;ls *.htm | while read X&lt;BR /&gt;  do&lt;BR /&gt;     NEWNAME=${X}l&lt;BR /&gt;     if [[ ! -f ${NEWNAME} ]]&lt;BR /&gt;       then&lt;BR /&gt;         mv ${X} ${NEWNAME}&lt;BR /&gt;       else&lt;BR /&gt;         echo "${NEWNAME} already exists." &amp;gt;&amp;amp;2&lt;BR /&gt;       fi&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Because you have some many *.htm files in one directory, you may need to change the ls *.htm to something like ls [a-g]*.htm and do only a portion of themn at a time.&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Feb 2007 14:35:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-rename-10000-files/m-p/5030918#M430811</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-02-27T14:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename 10000 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-rename-10000-files/m-p/5030919#M430812</link>
      <description>Hi Praveen:&lt;BR /&gt;&lt;BR /&gt;Yet another way:&lt;BR /&gt;&lt;BR /&gt;# ls *.htm | xargs -i mv {} {}l &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 27 Feb 2007 14:42:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-rename-10000-files/m-p/5030919#M430812</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-02-27T14:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename 10000 files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-rename-10000-files/m-p/5030920#M430813</link>
      <description>Thanks, All are working&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 27 Feb 2007 15:18:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-rename-10000-files/m-p/5030920#M430813</guid>
      <dc:creator>praveen..</dc:creator>
      <dc:date>2007-02-27T15:18:12Z</dc:date>
    </item>
  </channel>
</rss>

