<?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: grep a paragraph? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/7003225#M495685</link>
    <description>&lt;P&gt;&amp;gt; grep's -A and -B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are only available in gnu's grep.&lt;/P&gt;</description>
    <pubDate>Sat, 21 Apr 2018 21:28:46 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2018-04-21T21:28:46Z</dc:date>
    <item>
      <title>grep a paragraph ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/3221238#M495678</link>
      <description>Hii everybody here,&lt;BR /&gt;is there a method to filter out (from a text format file) a whole paragraph containing a line with certain pattern(which I serach for) (not only the line)??? this will be too helpful for me in processing large data amounts.&lt;BR /&gt;Thanks.&lt;BR /&gt;Tamer</description>
      <pubDate>Wed, 17 Mar 2004 06:10:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/3221238#M495678</guid>
      <dc:creator>Tamer Shaalan</dc:creator>
      <dc:date>2004-03-17T06:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: grep a paragraph ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/3221239#M495679</link>
      <description>lt09:/tmp 106 &amp;gt; cat test.txt&lt;BR /&gt;jer khaerg heiurrgh errhg iuehrg ihreg uhe&lt;BR /&gt;erg iuuehr guhre iguhreui hough erhg oehr&lt;BR /&gt;jhrg oqhergo hero&lt;BR /&gt;&lt;BR /&gt;h whrego hogh oerhorhjow h owrjt hojro ht&lt;BR /&gt;tkj wltrj rttjh rjtho ijrtph wjrthiwj rtoj&lt;BR /&gt;rthj owitr TEST jpijrtthpijwtrphjwpiotrh&lt;BR /&gt;tijworej otijwpttjoi tjh&lt;BR /&gt;&lt;BR /&gt;itjwprtj prrtjthh pwrtjpwjrttphjwpthowr&lt;BR /&gt;irjtpwjtrp rptij rptjhpprtjh pritj wprt&lt;BR /&gt;jteypiwjpwt&lt;BR /&gt;lt09:/tmp 107 &amp;gt; perl -ne'BEGIN{$/="\n\n"}/TEST/&amp;amp;&amp;amp;print' test.txt&lt;BR /&gt;h whrego hogh oerhorhjow h owrjt hojro ht&lt;BR /&gt;tkj wltrj rttjh rjtho ijrtph wjrthiwj rtoj&lt;BR /&gt;rthj owitr TEST jpijrtthpijwtrphjwpiotrh&lt;BR /&gt;tijworej otijwpttjoi tjh&lt;BR /&gt;&lt;BR /&gt;lt09:/tmp 108 &amp;gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 17 Mar 2004 06:14:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/3221239#M495679</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-03-17T06:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: grep a paragraph ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/3221240#M495680</link>
      <description>To my understanding a big text block without any line breaks are considered as paragraph (from text processor's point of view). can you post a sample file here?&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Wed, 17 Mar 2004 06:16:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/3221240#M495680</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-03-17T06:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: grep a paragraph ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/3221241#M495681</link>
      <description>From Handy One-Liners for sed (attached):&lt;BR /&gt;&lt;BR /&gt;# print paragraph if it contains AAA (blank lines separate paragraphs)&lt;BR /&gt; # HHsed v1.5 must insert a 'G;' after 'x;' in the next 3 scripts below&lt;BR /&gt; sed -e '/./{H;$!d;}' -e 'x;/AAA/!d;'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 17 Mar 2004 06:46:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/3221241#M495681</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-03-17T06:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: grep a paragraph ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/3221242#M495682</link>
      <description>Hi,&lt;BR /&gt;how about this:&lt;BR /&gt;# cat &lt;YOUR_INFILE&gt; | awk  '/./,/\n\n/' |awk '/TEST/' &lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;&lt;/YOUR_INFILE&gt;</description>
      <pubDate>Wed, 17 Mar 2004 09:13:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/3221242#M495682</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2004-03-17T09:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: grep a paragraph ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/3221243#M495683</link>
      <description>Hiii Pete &lt;BR /&gt;Thanks a million for your great amazing scripts !!!!! &lt;BR /&gt;It is easly done !&lt;BR /&gt;Tamer</description>
      <pubDate>Wed, 17 Mar 2004 10:49:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/3221243#M495683</guid>
      <dc:creator>Tamer Shaalan</dc:creator>
      <dc:date>2004-03-17T10:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: grep a paragraph ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/7002948#M495684</link>
      <description>&lt;P&gt;Assuming the data is structured so that it's always the line&lt;BR /&gt;before and after that you want you can make use of grep's -A (after) and&lt;BR /&gt;-B (before) switches to tell it to include the 1 line before the match&lt;BR /&gt;and 1 line after it:&lt;/P&gt;&lt;P&gt;For example i'm grepping physical device memory configuration in&lt;BR /&gt;dmedecode, I can use the Locator: as anchor point to paragraph i need to&lt;BR /&gt;grep.&lt;/P&gt;&lt;P&gt;dmidecode|grep -A 10 -B 8 "Locator:"&lt;/P&gt;&lt;P&gt;The output will be like this:&lt;/P&gt;&lt;P&gt;Memory Device&lt;BR /&gt;Array Handle: 0x1000&lt;BR /&gt;Error Information Handle: Not Provided&lt;BR /&gt;Total Width: 72 bits&lt;BR /&gt;Data Width: 64 bits&lt;BR /&gt;Size: 8192 MB&lt;BR /&gt;Form Factor: FB-DIMM&lt;BR /&gt;Set: 1&lt;BR /&gt;Locator: Board 1, DIMM 1A&lt;BR /&gt;Bank Locator: Not Specified&lt;BR /&gt;Type: DDR3&lt;BR /&gt;Type Detail: Synchronous&lt;BR /&gt;Speed: 1333 MHz&lt;BR /&gt;Manufacturer: Not Specified&lt;BR /&gt;Serial Number: Not Specified&lt;BR /&gt;Asset Tag: Not Specified&lt;BR /&gt;Part Number: Not Specified&lt;BR /&gt;Rank: 2&lt;BR /&gt;Configured Clock Speed: 800 MHz&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 20:32:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/7002948#M495684</guid>
      <dc:creator>agustinL</dc:creator>
      <dc:date>2018-04-18T20:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: grep a paragraph?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/7003225#M495685</link>
      <description>&lt;P&gt;&amp;gt; grep's -A and -B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are only available in gnu's grep.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2018 21:28:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-a-paragraph/m-p/7003225#M495685</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2018-04-21T21:28:46Z</dc:date>
    </item>
  </channel>
</rss>

