<?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 Share with you: a simple script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/share-with-you-a-simple-script/m-p/2577661#M920002</link>
    <description>Name:     up2low&lt;BR /&gt;Function: Move all the  filenames/dirnames under the &lt;BR /&gt;          input directories, from&lt;BR /&gt;          upper case to lower case&lt;BR /&gt;Usage:    itmv &lt;DIRNAME_LIST&gt;&lt;BR /&gt;E.g.      up2low  DIR_NAME1 DIR_NAME2    &lt;BR /&gt;&lt;BR /&gt;Content:&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;for i in `find $* \( -type f -o -type d \) | sort -r`&lt;BR /&gt;do&lt;BR /&gt;  mv   ${i}   "`dirname ${i}`/""`basename ${i}|tr '[A-Z]' '[a-z]'`"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope it can help you!&lt;BR /&gt;&lt;BR /&gt;/Listener&lt;/DIRNAME_LIST&gt;</description>
    <pubDate>Tue, 11 Sep 2001 06:56:47 GMT</pubDate>
    <dc:creator>discoverer</dc:creator>
    <dc:date>2001-09-11T06:56:47Z</dc:date>
    <item>
      <title>Share with you: a simple script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/share-with-you-a-simple-script/m-p/2577661#M920002</link>
      <description>Name:     up2low&lt;BR /&gt;Function: Move all the  filenames/dirnames under the &lt;BR /&gt;          input directories, from&lt;BR /&gt;          upper case to lower case&lt;BR /&gt;Usage:    itmv &lt;DIRNAME_LIST&gt;&lt;BR /&gt;E.g.      up2low  DIR_NAME1 DIR_NAME2    &lt;BR /&gt;&lt;BR /&gt;Content:&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;for i in `find $* \( -type f -o -type d \) | sort -r`&lt;BR /&gt;do&lt;BR /&gt;  mv   ${i}   "`dirname ${i}`/""`basename ${i}|tr '[A-Z]' '[a-z]'`"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope it can help you!&lt;BR /&gt;&lt;BR /&gt;/Listener&lt;/DIRNAME_LIST&gt;</description>
      <pubDate>Tue, 11 Sep 2001 06:56:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/share-with-you-a-simple-script/m-p/2577661#M920002</guid>
      <dc:creator>discoverer</dc:creator>
      <dc:date>2001-09-11T06:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Share with you: a simple script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/share-with-you-a-simple-script/m-p/2577662#M920003</link>
      <description>Thanks,&lt;BR /&gt;&lt;BR /&gt;I'll put that one in my blue book!&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 11 Sep 2001 09:26:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/share-with-you-a-simple-script/m-p/2577662#M920003</guid>
      <dc:creator>Tim D Fulford</dc:creator>
      <dc:date>2001-09-11T09:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Share with you: a simple script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/share-with-you-a-simple-script/m-p/2577663#M920004</link>
      <description>Hello "discoverer",&lt;BR /&gt;&lt;BR /&gt;I would recommend to first test for the existence of&lt;BR /&gt;the "new" (uppercase) file in the target directory, as&lt;BR /&gt;you may create the same upper case name from more&lt;BR /&gt;than one mixed case names, e.g.:&lt;BR /&gt;&lt;BR /&gt;source-dir:&lt;BR /&gt;aFile Afile AFile aFiLe&lt;BR /&gt;&lt;BR /&gt;target-dir:&lt;BR /&gt;AFILE&lt;BR /&gt;&lt;BR /&gt;You see the danger?&lt;BR /&gt;&lt;BR /&gt;Just my ?0.02,&lt;BR /&gt;Wodisch&lt;BR /&gt;PS: Did we not have a thread about that?</description>
      <pubDate>Tue, 11 Sep 2001 09:54:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/share-with-you-a-simple-script/m-p/2577663#M920004</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-09-11T09:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Share with you: a simple script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/share-with-you-a-simple-script/m-p/2577664#M920005</link>
      <description>Hi Wodisch,&lt;BR /&gt;&lt;BR /&gt;You are really a sharp 'wizard'!&lt;BR /&gt;&lt;BR /&gt;So, there should be an additional check on the target filename before 'mv', then if confilict, we should report these files, then abort or 'mv' it to a new name, depending on our conditions.&lt;BR /&gt;&lt;BR /&gt;For my users' requirements, there is no such a risk.&lt;BR /&gt;&lt;BR /&gt;Thanks for your attention!&lt;BR /&gt;&lt;BR /&gt;/Listener&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Sep 2001 07:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/share-with-you-a-simple-script/m-p/2577664#M920005</guid>
      <dc:creator>discoverer</dc:creator>
      <dc:date>2001-09-12T07:50:23Z</dc:date>
    </item>
  </channel>
</rss>

