<?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 perl help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-help/m-p/5173521#M682558</link>
    <description>#!/usr/bin/perl -nl&lt;BR /&gt;BEGIN{&lt;BR /&gt;%m=(Jan=&amp;gt;1,Feb=&amp;gt;2,Mar=&amp;gt;3,Apr=&amp;gt;4,May=&amp;gt;5,Jun=&amp;gt;6,&lt;BR /&gt;    Jul=&amp;gt;7,Aug=&amp;gt;8,Sep=&amp;gt;9,Oct=&amp;gt;10,Nov=&amp;gt;11,Dec=&amp;gt;12)};&lt;BR /&gt;m{^Event.+(\w{3})\s(\d\d).+\s(\d{4})} and&lt;BR /&gt;    printf "%02d%02d%4d\n",$2,$m{$1},$3;&lt;BR /&gt;1;&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;# X="Event Time..........: Tue Mar 17 20:57:58 2009"&lt;BR /&gt;# echo ${X} | ./filter&lt;BR /&gt;17032009&lt;BR /&gt;&lt;BR /&gt;works fine when the date is from 10 an onwards. but when the date was 1 to 9 then the script doesn't work. Please help.</description>
    <pubDate>Wed, 06 May 2009 07:44:10 GMT</pubDate>
    <dc:creator>Jeeshan</dc:creator>
    <dc:date>2009-05-06T07:44:10Z</dc:date>
    <item>
      <title>perl help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-help/m-p/5173521#M682558</link>
      <description>#!/usr/bin/perl -nl&lt;BR /&gt;BEGIN{&lt;BR /&gt;%m=(Jan=&amp;gt;1,Feb=&amp;gt;2,Mar=&amp;gt;3,Apr=&amp;gt;4,May=&amp;gt;5,Jun=&amp;gt;6,&lt;BR /&gt;    Jul=&amp;gt;7,Aug=&amp;gt;8,Sep=&amp;gt;9,Oct=&amp;gt;10,Nov=&amp;gt;11,Dec=&amp;gt;12)};&lt;BR /&gt;m{^Event.+(\w{3})\s(\d\d).+\s(\d{4})} and&lt;BR /&gt;    printf "%02d%02d%4d\n",$2,$m{$1},$3;&lt;BR /&gt;1;&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;# X="Event Time..........: Tue Mar 17 20:57:58 2009"&lt;BR /&gt;# echo ${X} | ./filter&lt;BR /&gt;17032009&lt;BR /&gt;&lt;BR /&gt;works fine when the date is from 10 an onwards. but when the date was 1 to 9 then the script doesn't work. Please help.</description>
      <pubDate>Wed, 06 May 2009 07:44:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-help/m-p/5173521#M682558</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2009-05-06T07:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: perl help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-help/m-p/5173522#M682559</link>
      <description>Hi Ahsan, &lt;BR /&gt;&lt;BR /&gt;Please try to use below script.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl -nl&lt;BR /&gt;BEGIN{&lt;BR /&gt;%m=(Jan=&amp;gt;1,Feb=&amp;gt;2,Mar=&amp;gt;3,Apr=&amp;gt;4,May=&amp;gt;5,Jun=&amp;gt;6,&lt;BR /&gt;Jul=&amp;gt;7,Aug=&amp;gt;8,Sep=&amp;gt;9,Oct=&amp;gt;10,Nov=&amp;gt;11,Dec=&amp;gt;12)};&lt;BR /&gt;m{^Event.+(\w{3})\s(\d\d|\d).+\s(\d{4})} and&lt;BR /&gt;printf "%02d%02d%4d\n",$2,$m{$1},$3;&lt;BR /&gt;1;&lt;BR /&gt;&lt;BR /&gt;Hope this will helpful.&lt;BR /&gt;&lt;BR /&gt;Prashant/Vikas</description>
      <pubDate>Wed, 06 May 2009 09:09:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-help/m-p/5173522#M682559</guid>
      <dc:creator>Prashantj</dc:creator>
      <dc:date>2009-05-06T09:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: perl help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-help/m-p/5173523#M682560</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The requirement for a 2-digit day field or a space-filled 1-digit day could be met with this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl -nl&lt;BR /&gt;BEGIN{&lt;BR /&gt;%m=(Jan=&amp;gt;1,Feb=&amp;gt;2,Mar=&amp;gt;3,Apr=&amp;gt;4,May=&amp;gt;5,Jun=&amp;gt;6,&lt;BR /&gt;Jul=&amp;gt;7,Aug=&amp;gt;8,Sep=&amp;gt;9,Oct=&amp;gt;10,Nov=&amp;gt;11,Dec=&amp;gt;12)};&lt;BR /&gt;m{^Event.+(\w{3})\s+(\d{1,2}).+\s(\d{4})} and&lt;BR /&gt;printf "%02d%02d%4d\n",$2,$m{$1},$3;&lt;BR /&gt;1;&lt;BR /&gt;&lt;BR /&gt;The notation of "{1,2}" means at least one and no more than two.  In this case, "\d{1,2}" signifies one or two digits.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 06 May 2009 18:46:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-help/m-p/5173523#M682560</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-05-06T18:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: perl help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-help/m-p/5173524#M682561</link>
      <description>thnx</description>
      <pubDate>Fri, 05 Jun 2009 05:15:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-help/m-p/5173524#M682561</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2009-06-05T05:15:03Z</dc:date>
    </item>
  </channel>
</rss>

