<?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 How can i get specifically some lines between a sign ? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780711#M44235</link>
    <description>Hi all,&lt;BR /&gt;i have this output file:&lt;BR /&gt;&lt;BR /&gt;scheduled Jobs:&lt;BR /&gt;Level type Pri&lt;BR /&gt;==== (this is a note: first "=")&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;==== (this is a note: second "=")&lt;BR /&gt;&lt;BR /&gt;Ended Jobs&lt;BR /&gt;Level type Pri&lt;BR /&gt;===== (this is a note: third "=")&lt;BR /&gt;....&lt;BR /&gt;...&lt;BR /&gt;..&lt;BR /&gt;...&lt;BR /&gt;....&lt;BR /&gt;===== (this is a note: fourth "=")&lt;BR /&gt;&lt;BR /&gt;i want to get only the lines between the first "=" and the second "=", it means, only the scheduled Jobs --&amp;gt; lines: ..xxxx&lt;BR /&gt;How can i get them? can i do it with awk? please your support.</description>
    <pubDate>Sun, 24 Apr 2011 20:11:01 GMT</pubDate>
    <dc:creator>Manuales</dc:creator>
    <dc:date>2011-04-24T20:11:01Z</dc:date>
    <item>
      <title>How can i get specifically some lines between a sign ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780711#M44235</link>
      <description>Hi all,&lt;BR /&gt;i have this output file:&lt;BR /&gt;&lt;BR /&gt;scheduled Jobs:&lt;BR /&gt;Level type Pri&lt;BR /&gt;==== (this is a note: first "=")&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;..xxxx&lt;BR /&gt;==== (this is a note: second "=")&lt;BR /&gt;&lt;BR /&gt;Ended Jobs&lt;BR /&gt;Level type Pri&lt;BR /&gt;===== (this is a note: third "=")&lt;BR /&gt;....&lt;BR /&gt;...&lt;BR /&gt;..&lt;BR /&gt;...&lt;BR /&gt;....&lt;BR /&gt;===== (this is a note: fourth "=")&lt;BR /&gt;&lt;BR /&gt;i want to get only the lines between the first "=" and the second "=", it means, only the scheduled Jobs --&amp;gt; lines: ..xxxx&lt;BR /&gt;How can i get them? can i do it with awk? please your support.</description>
      <pubDate>Sun, 24 Apr 2011 20:11:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780711#M44235</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2011-04-24T20:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get specifically some lines between a sign ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780712#M44236</link>
      <description>Hi Manuales:&lt;BR /&gt;&lt;BR /&gt;As you stated your requirement and the pattern of the data:&lt;BR /&gt;&lt;BR /&gt;perl  -ne 'if (?^===?...?^===?) {print unless /^===/}' file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 24 Apr 2011 21:09:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780712#M44236</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-04-24T21:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get specifically some lines between a sign ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780713#M44237</link>
      <description>&lt;!--!*#--&gt;Here's an example script using 'awk' :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;## cat /tmp/doit&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;awk '&lt;BR /&gt;BEGIN {c=0}&lt;BR /&gt;  {&lt;BR /&gt;    while (getline) {&lt;BR /&gt;        if ( match($0 , "===") ) {&lt;BR /&gt;            c=c+1&lt;BR /&gt;            if (c&amp;gt;=2) { exit }&lt;BR /&gt;            continue&lt;BR /&gt;        }&lt;BR /&gt;        if (c==0) {&lt;BR /&gt;            continue&lt;BR /&gt;        }&lt;BR /&gt;        if (c==1) {&lt;BR /&gt;            print $0&lt;BR /&gt;            continue&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;  }&lt;BR /&gt;END { }&lt;BR /&gt;'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here's a run of it:&lt;BR /&gt;&lt;BR /&gt;## cat /tmp/in | /tmp/doit&lt;BR /&gt;..xxxx1&lt;BR /&gt;..xxxx2&lt;BR /&gt;..xxxx3&lt;BR /&gt;..xxxx4&lt;BR /&gt;..xxxx5&lt;BR /&gt;..xxxx6&lt;BR /&gt;..xxxx7&lt;BR /&gt;..xxxxE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Mon, 25 Apr 2011 16:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780713#M44237</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2011-04-25T16:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get specifically some lines between a sign ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780714#M44238</link>
      <description>&lt;!--!*#--&gt;Hi,&lt;BR /&gt;in my opinion it is better to keep the awk standard parsing:&lt;BR /&gt;&lt;BR /&gt;awk '/^====/ {mark++}&lt;BR /&gt;mark&amp;gt;1 {exit}&lt;BR /&gt;mark'&lt;BR /&gt;&lt;BR /&gt;mfg Peter&lt;BR /&gt;PS: untested</description>
      <pubDate>Mon, 25 Apr 2011 16:54:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780714#M44238</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2011-04-25T16:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get specifically some lines between a sign ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780715#M44239</link>
      <description>@Peter&lt;BR /&gt;&lt;BR /&gt;I've found it easier to use 'awk' in the complex way rather than trying to grok the eccentricities of it's simpler syntax.&lt;BR /&gt;Of course, then it just becomes another programming language.&lt;BR /&gt;&lt;BR /&gt;I got used to using it before 'perl' was around.&lt;BR /&gt;&lt;BR /&gt;BTW, your script prints the first "====" line , but I don't know how to fix it :&amp;gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Apr 2011 17:41:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780715#M44239</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2011-04-25T17:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get specifically some lines between a sign ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780716#M44240</link>
      <description>&lt;!--!*#--&gt;&amp;gt;BV: I've found it easier to use 'awk' in the complex way rather than trying to grok the eccentricities of it's simpler syntax.&lt;BR /&gt;&lt;BR /&gt;I too started that way but I learn as I go along.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;but I don't know how to fix it :&amp;gt;)&lt;BR /&gt;&lt;BR /&gt;A "next" will cause it to go to the next cycle, think of it as a super "continue":&lt;BR /&gt;awk '&lt;BR /&gt;/^====/ {&lt;BR /&gt;   if (++mark &amp;gt; 1) exit&lt;BR /&gt;   next&lt;BR /&gt;}&lt;BR /&gt;mark { print $0 }' input-file</description>
      <pubDate>Mon, 25 Apr 2011 18:33:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780716#M44240</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-04-25T18:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can i get specifically some lines between a sign ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780717#M44241</link>
      <description>OK,&lt;BR /&gt;other solution without the 'xxxx'-line:&lt;BR /&gt;&lt;BR /&gt;awk 'mark&lt;BR /&gt;/^====/ {mark++}&lt;BR /&gt;mark&amp;gt;1 {exit}'</description>
      <pubDate>Tue, 26 Apr 2011 07:23:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-can-i-get-specifically-some-lines-between-a-sign/m-p/4780717#M44241</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2011-04-26T07:23:14Z</dc:date>
    </item>
  </channel>
</rss>

