<?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: using the FIND command to move files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-find-command-to-move-files/m-p/3493099#M215282</link>
    <description>Hey Mark, try this ... this will work:&lt;BR /&gt;&lt;BR /&gt;# find &lt;YOUR current="" desired="" location=""&gt; -ctime +30 -exec mv {} &lt;YOUR new="" desired="" location=""&gt; \;&lt;/YOUR&gt;&lt;/YOUR&gt;</description>
    <pubDate>Thu, 24 Feb 2005 16:59:31 GMT</pubDate>
    <dc:creator>Dani Seely</dc:creator>
    <dc:date>2005-02-24T16:59:31Z</dc:date>
    <item>
      <title>using the FIND command to move files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-find-command-to-move-files/m-p/3493095#M215278</link>
      <description>hello&lt;BR /&gt;i have a large directory with over 800,000 files in it.  I am wanting to move all files older then 30days to another directory.  I am trying to use the FIND command, but am not having tons of luck.  Any help would be appreciated.  This is on a HPUX 11.i server. thanks</description>
      <pubDate>Thu, 24 Feb 2005 16:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-the-find-command-to-move-files/m-p/3493095#M215278</guid>
      <dc:creator>Mark Harshman_1</dc:creator>
      <dc:date>2005-02-24T16:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: using the FIND command to move files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-find-command-to-move-files/m-p/3493096#M215279</link>
      <description>Something like this should be close:&lt;BR /&gt;&lt;BR /&gt;cd to desired source directory:&lt;BR /&gt;&lt;BR /&gt;find . -mtime +30 -type f -exec mv {} /xxx/yyy/ \;&lt;BR /&gt;&lt;BR /&gt;Before doing this command, I would substitute a "safe" command like ls -l in the -exec clause to get your criteria just right.&lt;BR /&gt;&lt;BR /&gt;find . -time +30 -type f -exec ls -l {} \;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Feb 2005 16:44:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-the-find-command-to-move-files/m-p/3493096#M215279</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-02-24T16:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: using the FIND command to move files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-find-command-to-move-files/m-p/3493097#M215280</link>
      <description>cd /huge-directory&lt;BR /&gt;find . -mtime +30 -exec mv {} /destination \;</description>
      <pubDate>Thu, 24 Feb 2005 16:45:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-the-find-command-to-move-files/m-p/3493097#M215280</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2005-02-24T16:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: using the FIND command to move files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-find-command-to-move-files/m-p/3493098#M215281</link>
      <description>I would as follows.&lt;BR /&gt;&lt;BR /&gt;touch -t "time_30_days_back" somefile&lt;BR /&gt;find /dir -type f ! -newer "somefile" -exec ll -d {} \;&lt;BR /&gt;This give list and now move it by adding -exec mv {} /somedir/. or afterwards.&lt;BR /&gt;&lt;BR /&gt;This will also do it.&lt;BR /&gt;&lt;BR /&gt;find /dir -type f -ctime +30 -exec mv {} /somedir/. \;&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 24 Feb 2005 16:47:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-the-find-command-to-move-files/m-p/3493098#M215281</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-02-24T16:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: using the FIND command to move files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-find-command-to-move-files/m-p/3493099#M215282</link>
      <description>Hey Mark, try this ... this will work:&lt;BR /&gt;&lt;BR /&gt;# find &lt;YOUR current="" desired="" location=""&gt; -ctime +30 -exec mv {} &lt;YOUR new="" desired="" location=""&gt; \;&lt;/YOUR&gt;&lt;/YOUR&gt;</description>
      <pubDate>Thu, 24 Feb 2005 16:59:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-the-find-command-to-move-files/m-p/3493099#M215282</guid>
      <dc:creator>Dani Seely</dc:creator>
      <dc:date>2005-02-24T16:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: using the FIND command to move files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-the-find-command-to-move-files/m-p/3493100#M215283</link>
      <description>WOW!  When I opened up your question there were no responses and by the time I typed in my instructions 3 other people had submitted their answers!  This forum is awesome!&lt;BR /&gt;&lt;BR /&gt;Sorry ... back to what I was going to say ...&lt;BR /&gt;several people used different time options in their find command and I wanted to help you understand the differences:&lt;BR /&gt;&lt;BR /&gt;-atime is for the files access time&lt;BR /&gt;&lt;BR /&gt;-ctime is for the files changed time&lt;BR /&gt;&lt;BR /&gt;-mtime is for the files modified time&lt;BR /&gt;&lt;BR /&gt;Play with the command options by using ls rather than mv until you get the desired result.  Hope this clears things up.</description>
      <pubDate>Thu, 24 Feb 2005 17:09:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-the-find-command-to-move-files/m-p/3493100#M215283</guid>
      <dc:creator>Dani Seely</dc:creator>
      <dc:date>2005-02-24T17:09:08Z</dc:date>
    </item>
  </channel>
</rss>

