<?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: shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994761#M296378</link>
    <description>Hi Ismagilov,&lt;BR /&gt;&lt;BR /&gt;You can also do with this way.&lt;BR /&gt;&lt;BR /&gt;touch -t 200705070000 timefile&lt;BR /&gt;(this will create a file called timefile as below:&lt;BR /&gt;-rw-r--r--   1 root       sys              0 May  7 00:00 timefile&lt;BR /&gt;)&lt;BR /&gt;touch -t 200705071138 timefile&lt;BR /&gt;(-rw-r--r--   1 root       sys              0 May  7 11:38 timefile&lt;BR /&gt;)&lt;BR /&gt;touch -t 200704060000 time2&lt;BR /&gt;(-rw-r--r--   1 root       sys              0 Apr  6 00:00 time2&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;You can touch with any date/time you want to use (fine tune according to your needs). Then use those fiels with -newer option of the find.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;find . -newer ./time2   &lt;BR /&gt;&lt;BR /&gt;Hope this will help you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rasheed Tamton.&lt;BR /&gt;</description>
    <pubDate>Mon, 07 May 2007 04:15:08 GMT</pubDate>
    <dc:creator>Rasheed Tamton</dc:creator>
    <dc:date>2007-05-07T04:15:08Z</dc:date>
    <item>
      <title>shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994752#M296369</link>
      <description>Hi,&lt;BR /&gt;Prompt how to move from a directory /temp1 to a directory /temp2 files which date of creation will defend from current date more than for 1 month.&lt;BR /&gt;ps thankful in advance.</description>
      <pubDate>Sun, 06 May 2007 23:33:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994752#M296369</guid>
      <dc:creator>Ismagilov</dc:creator>
      <dc:date>2007-05-06T23:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994753#M296370</link>
      <description>There is no such thing as file creation time...access time (atime) modification time (mtime) and change time (ctime) are the only time related things that are stored for a file. Which of these attributes do you want to test against other files?</description>
      <pubDate>Sun, 06 May 2007 23:58:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994753#M296370</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-06T23:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994754#M296371</link>
      <description>Hi Sandman!&lt;BR /&gt;To me updating time (mtime) interests, but complexity arose at giving of parametres in mv.&lt;BR /&gt;Here that I tried an example:&lt;BR /&gt;find /temp1 -mtime +30 -type f | xargs mv /temp2</description>
      <pubDate>Mon, 07 May 2007 00:05:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994754#M296371</guid>
      <dc:creator>Ismagilov</dc:creator>
      <dc:date>2007-05-07T00:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994755#M296372</link>
      <description>Here's what you were missing:&lt;BR /&gt;&lt;BR /&gt;find /temp1 -mtime +30 -type f | xargs -i -n1 mv {} /temp2</description>
      <pubDate>Mon, 07 May 2007 00:07:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994755#M296372</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-07T00:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994756#M296373</link>
      <description>On find /temp1 -mtime +30 -type f | xargs -i -n1 mv {} /temp2 a line answers:&lt;BR /&gt;&lt;BR /&gt;Usage: mv [-f] [-i] [-e warn|force|ignore] f1 f2&lt;BR /&gt;       mv [-f] [-i] [-e warn|force|ignore] f1 ... fn d1&lt;BR /&gt;       mv [-f] [-i] [-e warn|force|ignore] d1 d2&lt;BR /&gt;Usage: mv [-f] [-i] [-e warn|force|ignore] f1 f2&lt;BR /&gt;       mv [-f] [-i] [-e warn|force|ignore] f1 ... fn d1&lt;BR /&gt;       mv [-f] [-i] [-e warn|force|ignore] d1 d2&lt;BR /&gt;&lt;BR /&gt;//In a directory temp1 find finds 2 files and mv on parametres warrants</description>
      <pubDate>Mon, 07 May 2007 00:16:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994756#M296373</guid>
      <dc:creator>Ismagilov</dc:creator>
      <dc:date>2007-05-07T00:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994757#M296374</link>
      <description>try the one below:&lt;BR /&gt;&lt;BR /&gt;find /temp1 -mtime +30 -type f | xargs -n1 -i mv {} /temp2</description>
      <pubDate>Mon, 07 May 2007 00:21:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994757#M296374</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-05-07T00:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994758#M296375</link>
      <description>It works many thanks!</description>
      <pubDate>Mon, 07 May 2007 00:26:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994758#M296375</guid>
      <dc:creator>Ismagilov</dc:creator>
      <dc:date>2007-05-07T00:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994759#M296376</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;find /temp1 -type f -mtime +30  | xargs -i mv {} /temp2/</description>
      <pubDate>Mon, 07 May 2007 00:31:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994759#M296376</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2007-05-07T00:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994760#M296377</link>
      <description>Hi Rasheed Tamton,&lt;BR /&gt;This variant too works...&lt;BR /&gt;</description>
      <pubDate>Mon, 07 May 2007 00:39:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994760#M296377</guid>
      <dc:creator>Ismagilov</dc:creator>
      <dc:date>2007-05-07T00:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994761#M296378</link>
      <description>Hi Ismagilov,&lt;BR /&gt;&lt;BR /&gt;You can also do with this way.&lt;BR /&gt;&lt;BR /&gt;touch -t 200705070000 timefile&lt;BR /&gt;(this will create a file called timefile as below:&lt;BR /&gt;-rw-r--r--   1 root       sys              0 May  7 00:00 timefile&lt;BR /&gt;)&lt;BR /&gt;touch -t 200705071138 timefile&lt;BR /&gt;(-rw-r--r--   1 root       sys              0 May  7 11:38 timefile&lt;BR /&gt;)&lt;BR /&gt;touch -t 200704060000 time2&lt;BR /&gt;(-rw-r--r--   1 root       sys              0 Apr  6 00:00 time2&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;You can touch with any date/time you want to use (fine tune according to your needs). Then use those fiels with -newer option of the find.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;find . -newer ./time2   &lt;BR /&gt;&lt;BR /&gt;Hope this will help you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Rasheed Tamton.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 May 2007 04:15:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994761#M296378</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2007-05-07T04:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994762#M296379</link>
      <description>find /temp1 -type f -newer time2| xargs -i mv {} /temp2/</description>
      <pubDate>Mon, 07 May 2007 04:34:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994762#M296379</guid>
      <dc:creator>Rasheed Tamton</dc:creator>
      <dc:date>2007-05-07T04:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994763#M296380</link>
      <description>Thanks for general acquaintance are very useful.</description>
      <pubDate>Mon, 07 May 2007 05:35:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/3994763#M296380</guid>
      <dc:creator>Ismagilov</dc:creator>
      <dc:date>2007-05-07T05:35:53Z</dc:date>
    </item>
  </channel>
</rss>

