<?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: PERL script to parse in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240031#M329883</link>
    <description>&lt;!--!*#--&gt;&lt;BR /&gt;JRF choose for a solution where he skips (next) lines if they do not match.&lt;BR /&gt;&lt;BR /&gt;I prefer to look for what I need:&lt;BR /&gt;&lt;BR /&gt;$ perl -lne 'print qq($1 $2) if /^\s+([0-9A-F]{6})\s+\d+\s+([0-9.]+)/' file&lt;BR /&gt;&lt;BR /&gt;Regular expression par # explanaiton&lt;BR /&gt;&lt;BR /&gt;^\s+     # a line starting with some whitespace&lt;BR /&gt;([0-9A-F]{6})   # and 6 hex character (remember in $1)&lt;BR /&gt;\s+\d+\s+  #followed by whitespace, number, whitesdpace&lt;BR /&gt;([0-9.]+)  # and finally some numbers or dots, remembered in $2.&lt;BR /&gt;&lt;BR /&gt;If the line matches that, then print those $1 and $2 remembered.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 24 Jul 2008 17:57:46 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2008-07-24T17:57:46Z</dc:date>
    <item>
      <title>PERL script to parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240024#M329876</link>
      <description>Hi,&lt;BR /&gt;I have attached one report file.the output pattern also i have attached.I want to parse the starting location values &amp;amp; corresponding % cpu Solo time.&lt;BR /&gt;Can anyone please help in this regard?</description>
      <pubDate>Thu, 24 Jul 2008 16:06:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240024#M329876</guid>
      <dc:creator>Dodo_5</dc:creator>
      <dc:date>2008-07-24T16:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: PERL script to parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240025#M329877</link>
      <description>&lt;BR /&gt;That zip file is small and unuseable (for me).&lt;BR /&gt;&lt;BR /&gt;Maybe just attach a simple .txt file with a good chunk of input data and some sample output.&lt;BR /&gt;&lt;BR /&gt;'starting location' and 'Solo' time do not mean much to me now, but might become clear if the data had been readable.&lt;BR /&gt;&lt;BR /&gt;Please show us how far you got with trying to solve this, or send money for us to do all your work&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jul 2008 16:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240025#M329877</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-07-24T16:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: PERL script to parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240026#M329878</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;It seems that this file (attachment) is corrupt.  At least, I can't open it.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 24 Jul 2008 16:52:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240026#M329878</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-24T16:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: PERL script to parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240027#M329879</link>
      <description>First of all,sorry for attaching a corrupt file.&lt;BR /&gt;I am attaching it again.&lt;BR /&gt;I have used awk $3 inputfile&amp;gt;output&lt;BR /&gt;but the output is not comin properly.I think some column mismatch is also happening.So asking for your help.</description>
      <pubDate>Thu, 24 Jul 2008 17:00:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240027#M329879</guid>
      <dc:creator>Dodo_5</dc:creator>
      <dc:date>2008-07-24T17:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: PERL script to parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240028#M329880</link>
      <description>&lt;!--!*#--&gt;&amp;gt;  That zip file is small and unuseable (for&lt;BR /&gt;&amp;gt; me).&lt;BR /&gt;&lt;BR /&gt;It is small, but I had no trouble with it.&lt;BR /&gt;(Mozilla/5.0 (X11; U; OpenVMS&lt;BR /&gt;COMPAQ_Professional_Workstation; en-US;&lt;BR /&gt;rv:1.7.13) Gecko/20060506 + UnZip 5.52).&lt;BR /&gt;Perhaps you live wrong.&lt;BR /&gt;&lt;BR /&gt;alp $ unzip -t 308587.ZIP&lt;BR /&gt;Archive:  ALP$DKA0:[SMS.ITRC]308587.ZIP;1&lt;BR /&gt;    testing: New Folder/Input file.txt   OK&lt;BR /&gt;    testing: New Folder/output.xls    OK&lt;BR /&gt;    testing: New Folder/              OK&lt;BR /&gt;No errors detected in compressed data of ALP$DKA0:[SMS.ITRC]308587.ZIP;1.&lt;BR /&gt;&lt;BR /&gt;The ".xls" file was pretty useless to me, of&lt;BR /&gt;course.</description>
      <pubDate>Thu, 24 Jul 2008 17:09:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240028#M329880</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-07-24T17:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: PERL script to parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240029#M329881</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Perhaps:&lt;BR /&gt;&lt;BR /&gt;# perl -ne 'next if m{^\s*$};@a=split;next unless $a[0]=~m{[0-9A-F]+} &amp;amp;&amp;amp; $a[2]=~m{\d*\.\d+} &amp;amp;&amp;amp; printf "%s %s\n",$a[0],$a[2]' file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 24 Jul 2008 17:32:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240029#M329881</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-24T17:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: PERL script to parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240030#M329882</link>
      <description>thanks for that...&lt;BR /&gt;but can you help in that script?</description>
      <pubDate>Thu, 24 Jul 2008 17:33:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240030#M329882</guid>
      <dc:creator>Dodo_5</dc:creator>
      <dc:date>2008-07-24T17:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: PERL script to parse</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240031#M329883</link>
      <description>&lt;!--!*#--&gt;&lt;BR /&gt;JRF choose for a solution where he skips (next) lines if they do not match.&lt;BR /&gt;&lt;BR /&gt;I prefer to look for what I need:&lt;BR /&gt;&lt;BR /&gt;$ perl -lne 'print qq($1 $2) if /^\s+([0-9A-F]{6})\s+\d+\s+([0-9.]+)/' file&lt;BR /&gt;&lt;BR /&gt;Regular expression par # explanaiton&lt;BR /&gt;&lt;BR /&gt;^\s+     # a line starting with some whitespace&lt;BR /&gt;([0-9A-F]{6})   # and 6 hex character (remember in $1)&lt;BR /&gt;\s+\d+\s+  #followed by whitespace, number, whitesdpace&lt;BR /&gt;([0-9.]+)  # and finally some numbers or dots, remembered in $2.&lt;BR /&gt;&lt;BR /&gt;If the line matches that, then print those $1 and $2 remembered.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jul 2008 17:57:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-parse/m-p/4240031#M329883</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-07-24T17:57:46Z</dc:date>
    </item>
  </channel>
</rss>

