<?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 move files over a certain age to a different directory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543944#M652292</link>
    <description>something like this:&lt;BR /&gt;&lt;BR /&gt;touch reference -t[[CC]YY]MMDDhhmm[.SS]&lt;BR /&gt;&lt;BR /&gt;find onedir -type f ! -newer reference |xargs mv anotherdir&lt;BR /&gt;&lt;BR /&gt;Without testing, I think that's right.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Thu, 03 Dec 2009 18:50:11 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2009-12-03T18:50:11Z</dc:date>
    <item>
      <title>How to move files over a certain age to a different directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543943#M652291</link>
      <description>Hi there --&lt;BR /&gt;&lt;BR /&gt;I need to move a large series of files that are over a certain age, ie: dated or time stamped before January 1 2009, from one directory to another one.&lt;BR /&gt;&lt;BR /&gt;What would the correct syntax be in order to accomplish this? The operating system in question is HP-UX 11.00. Thanks.</description>
      <pubDate>Thu, 03 Dec 2009 18:38:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543943#M652291</guid>
      <dc:creator>Andrew Kaplan</dc:creator>
      <dc:date>2009-12-03T18:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to move files over a certain age to a different directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543944#M652292</link>
      <description>something like this:&lt;BR /&gt;&lt;BR /&gt;touch reference -t[[CC]YY]MMDDhhmm[.SS]&lt;BR /&gt;&lt;BR /&gt;find onedir -type f ! -newer reference |xargs mv anotherdir&lt;BR /&gt;&lt;BR /&gt;Without testing, I think that's right.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 03 Dec 2009 18:50:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543944#M652292</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-12-03T18:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to move files over a certain age to a different directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543945#M652293</link>
      <description>cd /path/to/files&lt;BR /&gt;find ./ -type f -mtime +365 -exec mv {} /new/dir/ \;&lt;BR /&gt;&lt;BR /&gt;some form of this should do it..&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Dec 2009 18:53:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543945#M652293</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2009-12-03T18:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to move files over a certain age to a different directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543946#M652294</link>
      <description>Here, this one does work:&lt;BR /&gt;&lt;BR /&gt;touch reference -t[[CC]YY]MMDDhhmm[.SS]&lt;BR /&gt;&lt;BR /&gt;find onedir -type f ! -newer reference -exec mv {} /anotherdir \;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 03 Dec 2009 18:55:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543946#M652294</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-12-03T18:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to move files over a certain age to a different directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543947#M652295</link>
      <description>Hi there --&lt;BR /&gt;&lt;BR /&gt;Thanks for your responses. I implemented Tim Nelson's suggestion, and it worked very well. &lt;BR /&gt;&lt;BR /&gt;I will make sure to assign points to both of you, and even though I did not use Pete Randall's method, the least I can do is to give points as gratitude. &lt;BR /&gt;&lt;BR /&gt;Thanks again to you both.</description>
      <pubDate>Thu, 03 Dec 2009 21:17:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543947#M652295</guid>
      <dc:creator>Andrew Kaplan</dc:creator>
      <dc:date>2009-12-03T21:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to move files over a certain age to a different directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543948#M652296</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;just a note: mv can handle multiple parameters too, so this solution would be faster than the above&lt;BR /&gt;&lt;BR /&gt;find ./ -type f -mtime +365 -exec mv {} /new/dir/ \+&lt;BR /&gt;&lt;BR /&gt;note the + sign at the end instead of ; -&amp;gt; this feeds all the founded files to a single mv process</description>
      <pubDate>Fri, 04 Dec 2009 12:14:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543948#M652296</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2009-12-04T12:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to move files over a certain age to a different directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543949#M652297</link>
      <description>&amp;gt;Viktor: mv can handle multiple parameters too, so this solution would be faster than the above&lt;BR /&gt;&lt;BR /&gt;Except you can't get there from here.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;find ./ -type f -mtime +365 -exec mv {} /new/dir/ +&lt;BR /&gt;&lt;BR /&gt;The Posix standard only allows you to put the {} right before the +.&lt;BR /&gt;See these other threads where I introduce an auxiliary script to do the work:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1331996" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1331996&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1133772" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1133772&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1383497" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1383497&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1111050" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1111050&lt;/A&gt;</description>
      <pubDate>Fri, 04 Dec 2009 13:14:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-move-files-over-a-certain-age-to-a-different-directory/m-p/4543949#M652297</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-12-04T13:14:41Z</dc:date>
    </item>
  </channel>
</rss>

