<?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: multiple renames in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637845#M42828</link>
    <description>cd &lt;DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;find . -type f -name "*.html" | sed "s/\.html$//" | xargs -i mv {}.html {}&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;/DIRECTORY&gt;</description>
    <pubDate>Wed, 02 Jan 2002 21:24:27 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-01-02T21:24:27Z</dc:date>
    <item>
      <title>multiple renames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637843#M42826</link>
      <description>I have 72 patches to put in a depot and install.  But first I need to take the .html extension off the file name.  Would someone give me a command to change them without having to do the mv command 72 times?</description>
      <pubDate>Wed, 02 Jan 2002 21:13:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637843#M42826</guid>
      <dc:creator>Greta Blamire</dc:creator>
      <dc:date>2002-01-02T21:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: multiple renames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637844#M42827</link>
      <description>If I read you question right...&lt;BR /&gt;&lt;BR /&gt;ls *.html &amp;gt; filename.out&lt;BR /&gt;sed 's/.html//g' filename.out &amp;gt; filename1.out&lt;BR /&gt;for i in `cat filename1.out`&lt;BR /&gt;  do&lt;BR /&gt;    mv $i.html $i&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That should work for you.&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jan 2002 21:23:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637844#M42827</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-01-02T21:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: multiple renames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637845#M42828</link>
      <description>cd &lt;DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;find . -type f -name "*.html" | sed "s/\.html$//" | xargs -i mv {}.html {}&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;/DIRECTORY&gt;</description>
      <pubDate>Wed, 02 Jan 2002 21:24:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637845#M42828</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-02T21:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: multiple renames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637846#M42829</link>
      <description>Hi Greta:&lt;BR /&gt;&lt;BR /&gt;From your description, I believe that what you really want/need to do is to unshar the patches and collect them into a single depot for installation.  Assuming that this is true, and assuming that the patches are titled "PHxx.html", do this:&lt;BR /&gt;&lt;BR /&gt;PDIR=/tmp/patch_depot&lt;BR /&gt;&lt;BR /&gt;cd /tmp&lt;BR /&gt;for X in PH*.html&lt;BR /&gt;do&lt;BR /&gt;  sh ${X}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;mkdir ${PDIR}&lt;BR /&gt;for X in PH*.depot&lt;BR /&gt;do&lt;BR /&gt;  swcopy -s ${PWD}/${X} \* @ ${PDIR}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;...now you can 'swinstall' with one reboot (if necessary) using 'tmp/patch_depot' as the source depot&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 02 Jan 2002 21:27:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637846#M42829</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-01-02T21:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: multiple renames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637847#M42830</link>
      <description>Greta, next time try using the customized patch manager, which will "bundle" your individually selected patches into a single "bundle" to be downloaded and installed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Wed, 02 Jan 2002 21:28:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637847#M42830</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-02T21:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: multiple renames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637848#M42831</link>
      <description>Hi Greta:&lt;BR /&gt;&lt;BR /&gt;You really don't need to because sh PHNE_12345.html works just as well as sh PHNE_12345 and does not append the .html to the .depot and .text files in either case. In fact, you can download all the files into a directory and simply sh PH* and that will unshare the files.&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jan 2002 21:29:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637848#M42831</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-01-02T21:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: multiple renames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637849#M42832</link>
      <description>Hi Greta,&lt;BR /&gt;&lt;BR /&gt;Assuming you still want to do this, here's a way without using sed:&lt;BR /&gt;&lt;BR /&gt;for file in *.html ; do&lt;BR /&gt;echo mv $file ${file%.html}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Thu, 03 Jan 2002 08:31:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637849#M42832</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-01-03T08:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: multiple renames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637850#M42833</link>
      <description>Hi Greta,&lt;BR /&gt;&lt;BR /&gt;Please scrub the "echo" from my previous reply to actually run it, this was to preview the commands.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Thu, 03 Jan 2002 08:33:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637850#M42833</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-01-03T08:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: multiple renames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637851#M42834</link>
      <description>It looks like you got lots of help for the rename.&lt;BR /&gt;&lt;BR /&gt;I just wanted to give you a heads up if you don't know about the  &lt;BR /&gt;&lt;BR /&gt;If you downloaded from the web which I assume you did via the .html extensions. I usally get html code at the begining that needs to be removed before I run the sh command.</description>
      <pubDate>Thu, 03 Jan 2002 13:56:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637851#M42834</guid>
      <dc:creator>Krishna Prasad</dc:creator>
      <dc:date>2002-01-03T13:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: multiple renames</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637852#M42835</link>
      <description>a million ways to skin that darn cat!!!&lt;BR /&gt;&lt;BR /&gt;for x in `ls *.html`&lt;BR /&gt;do&lt;BR /&gt;file=`echo $x | cut -f1 -d"."`&lt;BR /&gt;mv $x $file&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Thu, 03 Jan 2002 15:14:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-renames/m-p/2637852#M42835</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2002-01-03T15:14:39Z</dc:date>
    </item>
  </channel>
</rss>

