<?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: awk help please in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-please/m-p/4986695#M421114</link>
    <description>ok maybe I make the question easier:&lt;BR /&gt;&lt;BR /&gt;# echo "$(awk '/R1 Stock Started /,/R1 Stock Finished/' dailystockdownload.log | awk '{print}')"&lt;BR /&gt;&lt;BR /&gt;R1 Stock Finished Sat 17 Jun 00:30:19 2006&lt;BR /&gt;R1 Stock Started Sun 18 Jun 01:00:01 2006&lt;BR /&gt;&lt;BR /&gt;Isolation level set.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;7645 row(s) unloaded.&lt;BR /&gt;&lt;BR /&gt;R1 Stock Finished Sun 18 Jun 01:00:18 2006&lt;BR /&gt;R1 Stock Started Mon 19 Jun 00:30:01 2006&lt;BR /&gt;&lt;BR /&gt;Isolation level set.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;7645 row(s) unloaded.&lt;BR /&gt;&lt;BR /&gt;R1 Stock Finished Mon 19 Jun 00:30:18 2006&lt;BR /&gt;R1 Stock Started Tue 20 Jun 00:30:01 2006&lt;BR /&gt;&lt;BR /&gt;Isolation level set.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;7662 row(s) unloaded.&lt;BR /&gt;&lt;BR /&gt;R1 Stock Finished Tue 20 Jun 00:30:17 2006&lt;BR /&gt;R1 Stock Started Wed 21 Jun 00:30:01 2006&lt;BR /&gt;&lt;BR /&gt;Isolation level set.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;7699 row(s) unloaded.&lt;BR /&gt;&lt;BR /&gt;R1 Stock Finished Wed 21 Jun 00:30:46 2006&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;all I want is the information for today but cannot figure out how to print the lines between R1 Stock Started Wed 21 Jun 00:30:01 2006 and R1 Stock Finished Wed 21 Jun 00:30:46 2006&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
    <pubDate>Wed, 21 Jun 2006 06:03:31 GMT</pubDate>
    <dc:creator>lawrenzo_1</dc:creator>
    <dc:date>2006-06-21T06:03:31Z</dc:date>
    <item>
      <title>awk help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-please/m-p/4986693#M421112</link>
      <description>hi all,&lt;BR /&gt;&lt;BR /&gt;I am attemting to use awk to get and manipulate data but cannot get the syntax:&lt;BR /&gt;&lt;BR /&gt;Here is what I want, in a logfile I have many summary lines for diffenent sql's that run.&lt;BR /&gt;&lt;BR /&gt;I am running:&lt;BR /&gt;&lt;BR /&gt;TODAY=$(date "+%a %d %b")&lt;BR /&gt;&lt;BR /&gt;awk '&lt;BR /&gt;/SQL1 Summary Started/,/SQL1 Summary Finished/ {print}&lt;BR /&gt;$2 == "unloaded." {print $1}&lt;BR /&gt;' dailystockdownload.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SQL1 Summary Started Mon 19 Jun 05:31:27 2006&lt;BR /&gt;&lt;BR /&gt;Isolation level set.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1067 row(s) unloaded.&lt;BR /&gt;&lt;BR /&gt;SQL1 Summary Finished Mon 19 Jun 07:57:32 2006&lt;BR /&gt;&lt;BR /&gt;I get all entries from the logfile but I only want todays output in the following format on 1 line.&lt;BR /&gt;&lt;BR /&gt;SQL1 Summary Started Mon 19 Jun 05:31,1067 row(s),Finished Mon 19 Jun 07:57&lt;BR /&gt;&lt;BR /&gt;does this make sense? I do prefer to use awk and sed rather than perl but am open to suggestions.&lt;BR /&gt;&lt;BR /&gt;A million Thanks!&lt;BR /&gt;&lt;BR /&gt;Lawrenzo</description>
      <pubDate>Wed, 21 Jun 2006 05:28:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-please/m-p/4986693#M421112</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2006-06-21T05:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: awk help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-please/m-p/4986694#M421113</link>
      <description>Hi lawrenzo,&lt;BR /&gt;&lt;BR /&gt;try:&lt;BR /&gt;&lt;BR /&gt;awk -v today="$(date '+%a %d %b')" '$0 ~ today &amp;amp;&amp;amp; /SQL1 Summary Started/ { start=$0 }&lt;BR /&gt;$2 == "unloaded." {rows=$1" "$2 }&lt;BR /&gt;start &amp;amp;&amp;amp; /SQL1 Summary Finished/ { print start,rows,$0 ; start="" }' dailystockdownload.log&lt;BR /&gt;&lt;BR /&gt;Note:&lt;BR /&gt;- I'm not inserting additional commata.&lt;BR /&gt;- Blocks starting before midnight but ending after are reported as well.&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Wed, 21 Jun 2006 06:02:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-please/m-p/4986694#M421113</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-06-21T06:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: awk help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-please/m-p/4986695#M421114</link>
      <description>ok maybe I make the question easier:&lt;BR /&gt;&lt;BR /&gt;# echo "$(awk '/R1 Stock Started /,/R1 Stock Finished/' dailystockdownload.log | awk '{print}')"&lt;BR /&gt;&lt;BR /&gt;R1 Stock Finished Sat 17 Jun 00:30:19 2006&lt;BR /&gt;R1 Stock Started Sun 18 Jun 01:00:01 2006&lt;BR /&gt;&lt;BR /&gt;Isolation level set.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;7645 row(s) unloaded.&lt;BR /&gt;&lt;BR /&gt;R1 Stock Finished Sun 18 Jun 01:00:18 2006&lt;BR /&gt;R1 Stock Started Mon 19 Jun 00:30:01 2006&lt;BR /&gt;&lt;BR /&gt;Isolation level set.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;7645 row(s) unloaded.&lt;BR /&gt;&lt;BR /&gt;R1 Stock Finished Mon 19 Jun 00:30:18 2006&lt;BR /&gt;R1 Stock Started Tue 20 Jun 00:30:01 2006&lt;BR /&gt;&lt;BR /&gt;Isolation level set.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;7662 row(s) unloaded.&lt;BR /&gt;&lt;BR /&gt;R1 Stock Finished Tue 20 Jun 00:30:17 2006&lt;BR /&gt;R1 Stock Started Wed 21 Jun 00:30:01 2006&lt;BR /&gt;&lt;BR /&gt;Isolation level set.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;7699 row(s) unloaded.&lt;BR /&gt;&lt;BR /&gt;R1 Stock Finished Wed 21 Jun 00:30:46 2006&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;all I want is the information for today but cannot figure out how to print the lines between R1 Stock Started Wed 21 Jun 00:30:01 2006 and R1 Stock Finished Wed 21 Jun 00:30:46 2006&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
      <pubDate>Wed, 21 Jun 2006 06:03:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-please/m-p/4986695#M421114</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2006-06-21T06:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: awk help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-please/m-p/4986696#M421115</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;just reviewd the output format - found that 'unloaded.' is in column 3, so better use:&lt;BR /&gt;&lt;BR /&gt;awk -v today="$(date '+%a %d %b')" '$0 ~ today &amp;amp;&amp;amp; /SQL1 Summary Started/ { start=$0 }&lt;BR /&gt;$NF == "unloaded." {rows=$1" "$2 }&lt;BR /&gt;start &amp;amp;&amp;amp; /SQL1 Summary Finished/ { print start,rows,$0 ; start="" }' dailystockdownload.log&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jun 2006 06:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-please/m-p/4986696#M421115</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-06-21T06:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: awk help please</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-please/m-p/4986697#M421116</link>
      <description>great stuff peter, and the best thing is I am getting used to awk and will use this syntax else where&lt;BR /&gt;&lt;BR /&gt;You the Greatest!&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 21 Jun 2006 06:13:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help-please/m-p/4986697#M421116</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2006-06-21T06:13:09Z</dc:date>
    </item>
  </channel>
</rss>

