<?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 with Date Calc in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176638#M459129</link>
    <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Actually I want to increment the day and not the date everytime, Monday, Tuesday and so on.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;UniRock.</description>
    <pubDate>Fri, 22 May 2009 01:41:44 GMT</pubDate>
    <dc:creator>UniRock</dc:creator>
    <dc:date>2009-05-22T01:41:44Z</dc:date>
    <item>
      <title>Script with Date Calc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176634#M459125</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am trying to make a script that would create some data for the next five days of the week in five different folders with names of the DAYS.&lt;BR /&gt;The script has to be run once a week, say Monday.&lt;BR /&gt;&lt;BR /&gt;The problem is how shall I increment the date parameter to get next five DAY?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;UniRock&lt;BR /&gt;</description>
      <pubDate>Thu, 21 May 2009 08:32:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176634#M459125</guid>
      <dc:creator>UniRock</dc:creator>
      <dc:date>2009-05-21T08:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script with Date Calc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176635#M459126</link>
      <description>Use caljd.sh&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://mirrors.develooper.com/hpux/caljd-2.25.sh" target="_blank"&gt;http://mirrors.develooper.com/hpux/caljd-2.25.sh&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You'll need to learn to use it.&lt;BR /&gt;&lt;BR /&gt;Credits for that script to A. Clay Stephenson.</description>
      <pubDate>Thu, 21 May 2009 09:18:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176635#M459126</guid>
      <dc:creator>Anoop P_2</dc:creator>
      <dc:date>2009-05-21T09:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script with Date Calc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176636#M459127</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;i will give you one example&lt;BR /&gt;&lt;BR /&gt;i want to create every day one file with name "file.date" for example today is 21-05-09 so the file will be file.210509 next day will be file.220509 and so on&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;just do &lt;BR /&gt;&lt;BR /&gt;touch /tmp/file.`date +%d%m%y`&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;kamal</description>
      <pubDate>Thu, 21 May 2009 09:35:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176636#M459127</guid>
      <dc:creator>kemo</dc:creator>
      <dc:date>2009-05-21T09:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script with Date Calc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176637#M459128</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Its easy to take today's date and make a directiory, &lt;BR /&gt;you can increment the day also by adding 1 into current date.&lt;BR /&gt;&lt;BR /&gt;problem is comming when month is ending.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Thu, 21 May 2009 10:03:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176637#M459128</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-05-21T10:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script with Date Calc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176638#M459129</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Actually I want to increment the day and not the date everytime, Monday, Tuesday and so on.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;UniRock.</description>
      <pubDate>Fri, 22 May 2009 01:41:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176638#M459129</guid>
      <dc:creator>UniRock</dc:creator>
      <dc:date>2009-05-22T01:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script with Date Calc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176639#M459130</link>
      <description>Can you give us an example of what 'creating some data' might look like?&lt;BR /&gt;&lt;BR /&gt;Any preferred implementation language?&lt;BR /&gt;&lt;BR /&gt;If it is always run on Monday, and only the weekday is a variable, then you don't really need to know the actual date right?&lt;BR /&gt;&lt;BR /&gt;Just pick them from a list... using perl:&lt;BR /&gt;&lt;BR /&gt;$ perl -e '@days=qw(Mon Tue Wed Thu Fri); for (@days) { qx(cp x.dat $_)}'&lt;BR /&gt;'&lt;BR /&gt;&lt;BR /&gt;Or, instead of coding up the list, look for the directories:&lt;BR /&gt;&lt;BR /&gt;perl -e 'for (&amp;lt;*day&amp;gt;) { next unless -d; s/\..*$//; qx(cp x.dat $_) }'&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 22 May 2009 03:43:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176639#M459130</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-05-22T03:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script with Date Calc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176640#M459131</link>
      <description>Thanks all of you..</description>
      <pubDate>Thu, 28 May 2009 02:23:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-with-date-calc/m-p/5176640#M459131</guid>
      <dc:creator>UniRock</dc:creator>
      <dc:date>2009-05-28T02:23:45Z</dc:date>
    </item>
  </channel>
</rss>

