<?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 needed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134486#M671850</link>
    <description>I'm having a slow day.&lt;BR /&gt;&lt;BR /&gt;Here's an expanded line to make it Excel CSV compatible:&lt;BR /&gt;&lt;BR /&gt;grep "[0-9][0-9]:00" test.txt | awk -F\| '{print $1","$2","$3","$4","$5","$6}'  &amp;gt; somefile.csv&lt;BR /&gt;&lt;BR /&gt;Output looks like:&lt;BR /&gt;"09/08/08","00:00", 28.57,100.00, 79.62, 44.00&lt;BR /&gt;"09/08/08","01:00", 19.16, 65.81, 81.31, 45.00&lt;BR /&gt;"09/08/08","02:00", 0.86, 0.87, 74.96, 42.00&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to get rid of the double quotes too (really slow day)&lt;BR /&gt;&lt;BR /&gt;grep "[0-9][0-9]:00" test.txt | awk -F\| '{print $1","$2","$3","$4","$5","$6}' | sed -e 's/"//g'  &amp;gt;&amp;gt; somefilename.csv&lt;BR /&gt;</description>
    <pubDate>Wed, 08 Oct 2008 10:52:25 GMT</pubDate>
    <dc:creator>OFC_EDM</dc:creator>
    <dc:date>2008-10-08T10:52:25Z</dc:date>
    <item>
      <title>Script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134480#M671844</link>
      <description>Hi Everybody,&lt;BR /&gt;&lt;BR /&gt;Below pasted is the report generated via MWA export. Now What I need is a script which will grep only the columns in Hour basis ,lets say 00.00 , 01.00 , 02.00 &lt;BR /&gt;&lt;BR /&gt;Replies will be highly appreciated with points.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"MWA Export 10/08/08 10:19 AM Logfile: /var/opt/perf/datafiles/ SCOPE/UX C.03.71.00 batebsd1"&lt;BR /&gt;"        "|"     "|"      "|" Peak "|"Memory"|"      "|&lt;BR /&gt;"  Date  "|"Time "|"CPU % "|"Disk %"|"  %   "|"Swap %"|&lt;BR /&gt;"09/08/08"|"00:00"| 28.57|100.00| 79.62| 44.00|&lt;BR /&gt;"09/08/08"|"00:05"| 39.39| 91.85| 79.85| 44.00|&lt;BR /&gt;"09/08/08"|"00:10"| 11.48|100.00| 79.87| 44.00|&lt;BR /&gt;"09/08/08"|"00:15"|  7.71|100.00| 80.36| 45.00|&lt;BR /&gt;"09/08/08"|"00:20"|  8.25|100.00| 80.35| 45.00|&lt;BR /&gt;"09/08/08"|"00:25"|  8.44|100.00| 81.76| 46.00|&lt;BR /&gt;"09/08/08"|"00:30"|  7.64|100.00| 80.91| 45.00|&lt;BR /&gt;"09/08/08"|"00:35"|  8.43|100.00| 81.34| 45.00|&lt;BR /&gt;"09/08/08"|"00:40"| 11.69|100.00| 81.37| 45.00|&lt;BR /&gt;"09/08/08"|"00:45"| 18.02| 87.10| 81.33| 45.00|&lt;BR /&gt;"09/08/08"|"00:50"| 28.56| 69.90| 82.37| 46.00|&lt;BR /&gt;"09/08/08"|"00:55"| 19.33| 71.11| 81.35| 45.00|&lt;BR /&gt;"09/08/08"|"01:00"| 19.16| 65.81| 81.31| 45.00|&lt;BR /&gt;"09/08/08"|"01:05"| 17.46| 66.03| 81.31| 45.00|&lt;BR /&gt;"09/08/08"|"01:10"| 16.99| 68.01| 81.31| 45.00|&lt;BR /&gt;"09/08/08"|"01:15"| 16.92| 69.28| 81.31| 45.00|&lt;BR /&gt;"09/08/08"|"01:20"| 17.41| 70.75| 81.31| 45.00|&lt;BR /&gt;"09/08/08"|"01:25"| 16.43| 74.13| 81.31| 45.00|&lt;BR /&gt;"09/08/08"|"01:30"| 12.91| 80.88| 78.78| 44.00|&lt;BR /&gt;"09/08/08"|"01:35"|  6.68| 78.69| 78.66| 44.00|&lt;BR /&gt;"09/08/08"|"01:40"|  6.84| 67.62| 78.66| 44.00|&lt;BR /&gt;"09/08/08"|"01:45"|  6.61| 31.24| 74.96| 42.00|&lt;BR /&gt;"09/08/08"|"01:50"|  0.83|  1.10| 74.96| 42.00|&lt;BR /&gt;"09/08/08"|"01:55"|  0.87|  0.71| 74.96| 42.00|&lt;BR /&gt;"09/08/08"|"02:00"|  0.86|  0.87| 74.96| 42.00|&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Vinayan&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Oct 2008 09:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134480#M671844</guid>
      <dc:creator>vinayan</dc:creator>
      <dc:date>2008-10-08T09:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134481#M671845</link>
      <description>Grep for value ":00":&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;grep ":00" filename &lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Oct 2008 09:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134481#M671845</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2008-10-08T09:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134482#M671846</link>
      <description>Please explain why you did not think that was a perfect solution for in inperfect question?!&lt;BR /&gt;&lt;BR /&gt;Inperfect because you wrote 00.00 as hour and probably meant 00:00, and in " grep only the columns in Hour " the 'grep' is not an English verb best I know, but you possibly meant 'extract using the tool grep' there by severely limiting the range of possile solution. And the columns in Hour is really column #2, but you probably meant the worst with a whole hour in column #2.&lt;BR /&gt;&lt;BR /&gt;awk '/:00/ || NR &amp;lt; 4' your-file&lt;BR /&gt;&lt;BR /&gt;grins,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Oct 2008 10:16:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134482#M671846</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-10-08T10:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134483#M671847</link>
      <description>That was an iMperfect reply I wrote there :^)&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Oct 2008 10:18:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134483#M671847</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-10-08T10:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134484#M671848</link>
      <description>Did you mean to grep every hour of the day?&lt;BR /&gt;&lt;BR /&gt;grep "[0-9][0-9]:00"  filename&lt;BR /&gt;&lt;BR /&gt;This should get the records for&lt;BR /&gt;&lt;BR /&gt;00:00&lt;BR /&gt;01:00&lt;BR /&gt;02:00&lt;BR /&gt;down to&lt;BR /&gt;23:00&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Wed, 08 Oct 2008 10:47:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134484#M671848</guid>
      <dc:creator>OFC_EDM</dc:creator>
      <dc:date>2008-10-08T10:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134485#M671849</link>
      <description>using your data here's the output&lt;BR /&gt;&lt;BR /&gt;grep "[0-9][0-9]:00" test.txt&lt;BR /&gt;"09/08/08"|"00:00"| 28.57|100.00| 79.62| 44.00|&lt;BR /&gt;"09/08/08"|"01:00"| 19.16| 65.81| 81.31| 45.00|&lt;BR /&gt;"09/08/08"|"02:00"| 0.86| 0.87| 74.96| 42.00|&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Oct 2008 10:48:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134485#M671849</guid>
      <dc:creator>OFC_EDM</dc:creator>
      <dc:date>2008-10-08T10:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134486#M671850</link>
      <description>I'm having a slow day.&lt;BR /&gt;&lt;BR /&gt;Here's an expanded line to make it Excel CSV compatible:&lt;BR /&gt;&lt;BR /&gt;grep "[0-9][0-9]:00" test.txt | awk -F\| '{print $1","$2","$3","$4","$5","$6}'  &amp;gt; somefile.csv&lt;BR /&gt;&lt;BR /&gt;Output looks like:&lt;BR /&gt;"09/08/08","00:00", 28.57,100.00, 79.62, 44.00&lt;BR /&gt;"09/08/08","01:00", 19.16, 65.81, 81.31, 45.00&lt;BR /&gt;"09/08/08","02:00", 0.86, 0.87, 74.96, 42.00&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to get rid of the double quotes too (really slow day)&lt;BR /&gt;&lt;BR /&gt;grep "[0-9][0-9]:00" test.txt | awk -F\| '{print $1","$2","$3","$4","$5","$6}' | sed -e 's/"//g'  &amp;gt;&amp;gt; somefilename.csv&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Oct 2008 10:52:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134486#M671850</guid>
      <dc:creator>OFC_EDM</dc:creator>
      <dc:date>2008-10-08T10:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134487#M671851</link>
      <description>If you have MWA there's a command with a report option to do this automatically I believe.  &lt;BR /&gt;&lt;BR /&gt;But you'll have to dig through any manuals you can find to discover the command.  Been a few years since I did that.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Wed, 08 Oct 2008 10:54:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134487#M671851</guid>
      <dc:creator>OFC_EDM</dc:creator>
      <dc:date>2008-10-08T10:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134488#M671852</link>
      <description>Thank u very much</description>
      <pubDate>Wed, 08 Oct 2008 11:14:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-needed/m-p/5134488#M671852</guid>
      <dc:creator>vinayan</dc:creator>
      <dc:date>2008-10-08T11:14:28Z</dc:date>
    </item>
  </channel>
</rss>

