<?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: help in sorting a file in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983436#M99841</link>
    <description>thanks guys, because I am not familiar with perl i used the second method however P please post a reply here and I will give you more points as I inserted 2 by mistake, which I believe is incorrect because your method does work.&lt;BR /&gt;&lt;BR /&gt;Thanks guys.</description>
    <pubDate>Wed, 07 Jun 2006 03:04:36 GMT</pubDate>
    <dc:creator>lawrenzo_1</dc:creator>
    <dc:date>2006-06-07T03:04:36Z</dc:date>
    <item>
      <title>help in sorting a file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983432#M99837</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a large file which process's many accounts, I need to search and grep out information between 2 lines ie:&lt;BR /&gt;&lt;BR /&gt;S9 transactions started&lt;BR /&gt;&lt;BR /&gt;23450 row(s) unloaded&lt;BR /&gt;&lt;BR /&gt;S9 Transactions finished&lt;BR /&gt;&lt;BR /&gt;T4 Transactions started &lt;BR /&gt;&lt;BR /&gt;32475 row(s) unloaded&lt;BR /&gt;&lt;BR /&gt;T4 Transactions finished&lt;BR /&gt;&lt;BR /&gt;so in this case I want the amount of rows unloaded for S9 transactions.&lt;BR /&gt;&lt;BR /&gt;any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 07 Jun 2006 02:04:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983432#M99837</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2006-06-07T02:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: help in sorting a file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983433#M99838</link>
      <description>I'd also like to add to this that after S9 transactions started there is also a date field I'd like to display with the rows on the below line also detailed so ie&lt;BR /&gt;&lt;BR /&gt;S9 Transactions started &lt;DATE&gt; 23450 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;/DATE&gt;</description>
      <pubDate>Wed, 07 Jun 2006 02:24:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983433#M99838</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2006-06-07T02:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: help in sorting a file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983434#M99839</link>
      <description>lt09:/tmp 107 &amp;gt; cat test.dta&lt;BR /&gt;S9 transactions started&lt;BR /&gt;&lt;BR /&gt;23450 row(s) unloaded&lt;BR /&gt;&lt;BR /&gt;S9 Transactions finished&lt;BR /&gt;&lt;BR /&gt;T4 Transactions started&lt;BR /&gt;&lt;BR /&gt;32475 row(s) unloaded&lt;BR /&gt;&lt;BR /&gt;T4 Transactions finished&lt;BR /&gt;lt09:/tmp 108 &amp;gt; perl -e'$/="finished\n";$p=shift;while(&amp;lt;&amp;gt;){/$p/s and print}' S9 test.dta&lt;BR /&gt;S9 transactions started&lt;BR /&gt;&lt;BR /&gt;23450 row(s) unloaded&lt;BR /&gt;&lt;BR /&gt;S9 Transactions finished&lt;BR /&gt;lt09:/tmp 109 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;Does that give you enough rope to tie the problem down?&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 07 Jun 2006 02:37:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983434#M99839</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-06-07T02:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: help in sorting a file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983435#M99840</link>
      <description>One more way,&lt;BR /&gt;echo "S9 Transactions started $(date) $(awk '/S9 transactions started/,/S9 Transactions finished/' filename | grep unloaded | awk '{print $1}')"&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ninad</description>
      <pubDate>Wed, 07 Jun 2006 02:46:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983435#M99840</guid>
      <dc:creator>Ninad_1</dc:creator>
      <dc:date>2006-06-07T02:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: help in sorting a file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983436#M99841</link>
      <description>thanks guys, because I am not familiar with perl i used the second method however P please post a reply here and I will give you more points as I inserted 2 by mistake, which I believe is incorrect because your method does work.&lt;BR /&gt;&lt;BR /&gt;Thanks guys.</description>
      <pubDate>Wed, 07 Jun 2006 03:04:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983436#M99841</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2006-06-07T03:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: help in sorting a file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983437#M99842</link>
      <description>Thanks for being openminded to my world of Perl :)&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 07 Jun 2006 04:39:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983437#M99842</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-06-07T04:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: help in sorting a file</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983438#M99843</link>
      <description>Thanks Procura, maybe look into perl once I mastered awk and sed lol.&lt;BR /&gt;&lt;BR /&gt;Have a great day!&lt;BR /&gt;&lt;BR /&gt;8)</description>
      <pubDate>Wed, 07 Jun 2006 05:06:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-in-sorting-a-file/m-p/4983438#M99843</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2006-06-07T05:06:24Z</dc:date>
    </item>
  </channel>
</rss>

