<?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: script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4718955#M660276</link>
    <description>sorry , not today is 1st ,&lt;BR /&gt;&lt;BR /&gt;I would like to check is "file date is 1st" ( creation date or last modified date ) , can advise what can i do ? thx</description>
    <pubDate>Mon, 29 Nov 2010 02:12:18 GMT</pubDate>
    <dc:creator>ivy1234</dc:creator>
    <dc:date>2010-11-29T02:12:18Z</dc:date>
    <item>
      <title>script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4718954#M660274</link>
      <description>Currently  I have a script to move files from path A to path B , and a crontab will run this script daily , can advise if I want to have a condition to check if today is 1st of the daily , then do "xxx"  , what can i do ? thx</description>
      <pubDate>Mon, 29 Nov 2010 01:46:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4718954#M660274</guid>
      <dc:creator>ivy1234</dc:creator>
      <dc:date>2010-11-29T01:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4718955#M660276</link>
      <description>sorry , not today is 1st ,&lt;BR /&gt;&lt;BR /&gt;I would like to check is "file date is 1st" ( creation date or last modified date ) , can advise what can i do ? thx</description>
      <pubDate>Mon, 29 Nov 2010 02:12:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4718955#M660276</guid>
      <dc:creator>ivy1234</dc:creator>
      <dc:date>2010-11-29T02:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4718956#M660278</link>
      <description>Hi , &lt;BR /&gt;&lt;BR /&gt;i guess you are lokking for something like this :&lt;BR /&gt;&lt;BR /&gt;logfile="Set_the _log_directory_path_here"&lt;BR /&gt;activedir="Set_directory_In_which_to_check"&lt;BR /&gt;for i in `ll $activedir | awk '{print $7}'`&lt;BR /&gt;do &lt;BR /&gt;if [ "$i" == 1 ];then&lt;BR /&gt;echo "This file that will be copied is $i  " &amp;gt;&amp;gt; $logfile&lt;BR /&gt;cp #whad ever you want to do&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;also , please search this forum ...you will find many a threads and script alredy yhere for this job.&lt;BR /&gt;&lt;BR /&gt;Reg,</description>
      <pubDate>Mon, 29 Nov 2010 04:38:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/4718956#M660278</guid>
      <dc:creator>DeafFrog</dc:creator>
      <dc:date>2010-11-29T04:38:14Z</dc:date>
    </item>
  </channel>
</rss>

