<?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: mv question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-question/m-p/5064769#M437488</link>
    <description>Clay had the right idea but I would use rm -rf&lt;BR /&gt;or you could just rename bin/.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Patrick: cd bin.082307; mv * /bin&lt;BR /&gt;&lt;BR /&gt;(You forgot "../bin".)&lt;BR /&gt;This will merge directories, not overwrite.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Aussan: mv bin.082307/* bin&lt;BR /&gt;&lt;BR /&gt;Same problem as Patrick.  Also, if files are readonly you would need to add -f.&lt;BR /&gt;&lt;BR /&gt;But this "merges" not replaces the whole directory.</description>
    <pubDate>Thu, 23 Aug 2007 13:21:01 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-08-23T13:21:01Z</dc:date>
    <item>
      <title>mv question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-question/m-p/5064765#M437484</link>
      <description>&lt;BR /&gt;I have an uninstall script for which I need to move a previous directory ( saved by time stamp ) and need to overwrite it with current directory. So I wrote this command : &lt;BR /&gt;&lt;BR /&gt;mv bin.082307 bin&lt;BR /&gt;&lt;BR /&gt;but it moves the bin.082307 into the current bin directory :&lt;BR /&gt;&lt;BR /&gt;cd bin &lt;BR /&gt;ls -lrt&lt;BR /&gt;bin.082307&lt;BR /&gt;&lt;BR /&gt;which is what I don't want . I need to overwrite the contents of bin directory with the contents of bin.082307.&lt;BR /&gt;&lt;BR /&gt;Please help.</description>
      <pubDate>Thu, 23 Aug 2007 12:52:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-question/m-p/5064765#M437484</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2007-08-23T12:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: mv question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-question/m-p/5064766#M437485</link>
      <description>Do this:&lt;BR /&gt;&lt;BR /&gt;cd bin.082307&lt;BR /&gt;mv * /bin</description>
      <pubDate>Thu, 23 Aug 2007 13:00:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-question/m-p/5064766#M437485</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2007-08-23T13:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: mv question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-question/m-p/5064767#M437486</link>
      <description>Read the man page for mv; it's behaving exactly as documented.&lt;BR /&gt;&lt;BR /&gt;If you first rm -r bin and then mv bin.082307 bin, you will get your desired result.</description>
      <pubDate>Thu, 23 Aug 2007 13:06:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-question/m-p/5064767#M437486</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-23T13:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: mv question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-question/m-p/5064768#M437487</link>
      <description>mv bin.082307/* bin</description>
      <pubDate>Thu, 23 Aug 2007 13:08:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-question/m-p/5064768#M437487</guid>
      <dc:creator>Aussan</dc:creator>
      <dc:date>2007-08-23T13:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: mv question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-question/m-p/5064769#M437488</link>
      <description>Clay had the right idea but I would use rm -rf&lt;BR /&gt;or you could just rename bin/.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Patrick: cd bin.082307; mv * /bin&lt;BR /&gt;&lt;BR /&gt;(You forgot "../bin".)&lt;BR /&gt;This will merge directories, not overwrite.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Aussan: mv bin.082307/* bin&lt;BR /&gt;&lt;BR /&gt;Same problem as Patrick.  Also, if files are readonly you would need to add -f.&lt;BR /&gt;&lt;BR /&gt;But this "merges" not replaces the whole directory.</description>
      <pubDate>Thu, 23 Aug 2007 13:21:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-question/m-p/5064769#M437488</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-23T13:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: mv question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mv-question/m-p/5064770#M437489</link>
      <description>&lt;BR /&gt;I used Patrick/Dennis solution.&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Thu, 23 Aug 2007 14:14:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mv-question/m-p/5064770#M437489</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2007-08-23T14:14:37Z</dc:date>
    </item>
  </channel>
</rss>

