<?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: Converting date in a shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077002#M439754</link>
    <description>either -u or -? will generate a usage message</description>
    <pubDate>Mon, 29 Oct 2007 18:47:40 GMT</pubDate>
    <dc:creator>blah2blah</dc:creator>
    <dc:date>2007-10-29T18:47:40Z</dc:date>
    <item>
      <title>Converting date in a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5076999#M439751</link>
      <description>I am developing a shell script that needs to accept multiple date formats and be able to convert them into the long date format.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;10/29/07 ---&amp;gt; 29 October 2007&lt;BR /&gt;10-29-2007 ---&amp;gt; 29 October 2007&lt;BR /&gt;10.29.07 ---&amp;gt; 29 October 2007&lt;BR /&gt;&lt;BR /&gt;etc.....&lt;BR /&gt;&lt;BR /&gt;I need this so that I can grep out information from the certian log files. Because this is going to be run by normal users I am not sure if I can get them to enter the date the same time, every time.&lt;BR /&gt;&lt;BR /&gt;Does any one have suggestions or recommendations on how to do this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tim&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Oct 2007 17:12:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5076999#M439751</guid>
      <dc:creator>Timothy P. Jackson</dc:creator>
      <dc:date>2007-10-29T17:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date in a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077000#M439752</link>
      <description>use Clay Stephenson's 'caljd' date manipulation utility!&lt;BR /&gt;&lt;BR /&gt;You can download it from Merijn's website:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://mirrors.develooper.com/hpux/" target="_blank"&gt;http://mirrors.develooper.com/hpux/&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Oct 2007 17:17:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077000#M439752</guid>
      <dc:creator>blah2blah</dc:creator>
      <dc:date>2007-10-29T17:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date in a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077001#M439753</link>
      <description>Thanks,&lt;BR /&gt;&lt;BR /&gt;I down loaded it but I am have some diffulty with the syntax. Is there a "help" with Clay's utility?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Mon, 29 Oct 2007 18:02:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077001#M439753</guid>
      <dc:creator>Timothy P. Jackson</dc:creator>
      <dc:date>2007-10-29T18:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date in a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077002#M439754</link>
      <description>either -u or -? will generate a usage message</description>
      <pubDate>Mon, 29 Oct 2007 18:47:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077002#M439754</guid>
      <dc:creator>blah2blah</dc:creator>
      <dc:date>2007-10-29T18:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date in a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077003#M439755</link>
      <description>Ok, I got the date to convert to a Julian Date, but now I need to convert it back a specific format of.....&lt;BR /&gt;&lt;BR /&gt;Mon Oct 29 ... ... ...&lt;BR /&gt;&lt;BR /&gt;this would be the same format that the "date" command would give.&lt;BR /&gt;&lt;BR /&gt;Maybe there is an easier way to do this. I need to get all the entries out of the br_log file for the past 3 months, or from any give date forward.&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Oct 2007 19:41:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077003#M439755</guid>
      <dc:creator>Timothy P. Jackson</dc:creator>
      <dc:date>2007-10-29T19:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date in a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077004#M439756</link>
      <description>just replying to return to top of queue.&lt;BR /&gt;&lt;BR /&gt;maybe someone familiar with clay's date tool can provide further examples in how to do this</description>
      <pubDate>Tue, 30 Oct 2007 10:01:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077004#M439756</guid>
      <dc:creator>blah2blah</dc:creator>
      <dc:date>2007-10-30T10:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date in a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077005#M439757</link>
      <description>Thanks for following up on this. Clay's date converter utility works great. I spent some time with his examples and found what I needed. I also found that to create a script to pull this information out of the br_log file was going to take a lot longer than it was worth.&lt;BR /&gt;&lt;BR /&gt;So I imported the br_log file into Excell and striped out the data that I didn't want. This should make management happy.&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Tue, 30 Oct 2007 10:09:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077005#M439757</guid>
      <dc:creator>Timothy P. Jackson</dc:creator>
      <dc:date>2007-10-30T10:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date in a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077006#M439758</link>
      <description>See above reply</description>
      <pubDate>Tue, 30 Oct 2007 10:11:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077006#M439758</guid>
      <dc:creator>Timothy P. Jackson</dc:creator>
      <dc:date>2007-10-30T10:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date in a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077007#M439759</link>
      <description>This is really not a task for caljd.sh (or caljd.pl); your problem is tailor-made for the ParseDate function of the Perl Date::Manip module. Date::Manip is available from any CPAN site. ParseDate can recognize many different input formats and convert it to YYYYMMDDHH:MM:SS. Converting to another format is quite simple from that output.</description>
      <pubDate>Tue, 30 Oct 2007 10:18:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077007#M439759</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-10-30T10:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date in a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077008#M439760</link>
      <description>Although Clay's tool may be magnificent, I still wonder what is wrong with the date command :&lt;BR /&gt;date +"%d %B %E" return (TMHO) exactly what you look for.</description>
      <pubDate>Tue, 30 Oct 2007 10:22:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077008#M439760</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2007-10-30T10:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date in a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077009#M439761</link>
      <description>Thanks for the information Clay.&lt;BR /&gt;&lt;BR /&gt;When I have some more time I will persue this option. For now Excel will have to job. It is kind of funny that there has not been a utility to sort this information out already created.</description>
      <pubDate>Tue, 30 Oct 2007 10:30:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077009#M439761</guid>
      <dc:creator>Timothy P. Jackson</dc:creator>
      <dc:date>2007-10-30T10:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date in a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077010#M439762</link>
      <description>The thought of a poor defenseless UNIX box being forced to use Excel is more than my heart can bear. It took me all of about 3 minutes to throw together this Perl sample.&lt;BR /&gt;&lt;BR /&gt;Since you changed your requirements from the 1st example to the 2nd example, I decided to output 2 lines for each input argument.&lt;BR /&gt;&lt;BR /&gt;date.pl "10/29/07" "10-29-2007" "10.29.07" "Oct 10, 2007"&lt;BR /&gt;&lt;BR /&gt;should all be handled with ease. You will need to install the Date::Manip module and that will take you about 4 minutes to download and install from &lt;A href="http://www.perl.org/CPAN." target="_blank"&gt;www.perl.org/CPAN.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You should be able to take this and run with it even if you make your Perl script a blackbox that is called by a shell script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Oct 2007 11:31:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077010#M439762</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-10-30T11:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting date in a shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077011#M439763</link>
      <description>Thanks Clay, this is awesome!&lt;BR /&gt;&lt;BR /&gt;I too was thinking the same thing as I imported the br_log file into Excel. Its a sad day when I have to use MS to do my work for me.&lt;BR /&gt;&lt;BR /&gt;Thanks again for all your help.&lt;BR /&gt;&lt;BR /&gt;&lt;SORRY i="" can=""&gt;&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/SORRY&gt;</description>
      <pubDate>Tue, 30 Oct 2007 14:01:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-date-in-a-shell-script/m-p/5077011#M439763</guid>
      <dc:creator>Timothy P. Jackson</dc:creator>
      <dc:date>2007-10-30T14:01:44Z</dc:date>
    </item>
  </channel>
</rss>

