<?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 help in a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-a-script/m-p/4505203#M681027</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a file that consists of abput 1000 records as shown below for example.&lt;BR /&gt;&lt;BR /&gt;VG Name                     /dev/vgswap&lt;BR /&gt;VG Write Access             read/write&lt;BR /&gt;VG Status                   available&lt;BR /&gt;Max LV                      255&lt;BR /&gt;Cur LV                      2&lt;BR /&gt;Open LV                     2&lt;BR /&gt;Max PV                      16&lt;BR /&gt;Cur PV                      1&lt;BR /&gt;Act PV                      1&lt;BR /&gt;Max PE per PV               25000&lt;BR /&gt;VGDA                        2&lt;BR /&gt;PE Size (Mbytes)            4&lt;BR /&gt;Total PE                    12860&lt;BR /&gt;Alloc PE                    12500&lt;BR /&gt;Free PE                     360&lt;BR /&gt;Total PVG                   0&lt;BR /&gt;Total Spare PVs             0&lt;BR /&gt;Total Spare PVs in use      0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now the question is I need to write a report by grasping two strings from the above on the same line  like&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Max PE per PV         25000  VGDA                        2&lt;BR /&gt;</description>
    <pubDate>Tue, 29 Sep 2009 19:58:07 GMT</pubDate>
    <dc:creator>Kwhite_1</dc:creator>
    <dc:date>2009-09-29T19:58:07Z</dc:date>
    <item>
      <title>help in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-a-script/m-p/4505203#M681027</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have a file that consists of abput 1000 records as shown below for example.&lt;BR /&gt;&lt;BR /&gt;VG Name                     /dev/vgswap&lt;BR /&gt;VG Write Access             read/write&lt;BR /&gt;VG Status                   available&lt;BR /&gt;Max LV                      255&lt;BR /&gt;Cur LV                      2&lt;BR /&gt;Open LV                     2&lt;BR /&gt;Max PV                      16&lt;BR /&gt;Cur PV                      1&lt;BR /&gt;Act PV                      1&lt;BR /&gt;Max PE per PV               25000&lt;BR /&gt;VGDA                        2&lt;BR /&gt;PE Size (Mbytes)            4&lt;BR /&gt;Total PE                    12860&lt;BR /&gt;Alloc PE                    12500&lt;BR /&gt;Free PE                     360&lt;BR /&gt;Total PVG                   0&lt;BR /&gt;Total Spare PVs             0&lt;BR /&gt;Total Spare PVs in use      0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now the question is I need to write a report by grasping two strings from the above on the same line  like&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Max PE per PV         25000  VGDA                        2&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Sep 2009 19:58:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-a-script/m-p/4505203#M681027</guid>
      <dc:creator>Kwhite_1</dc:creator>
      <dc:date>2009-09-29T19:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: help in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-a-script/m-p/4505204#M681028</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;One of many possibilities with awk(1):&lt;BR /&gt;&lt;BR /&gt;awk 'BEGIN { ORS=" " } /^Max PE per PV|^VGDA/ {print}'&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Tue, 29 Sep 2009 20:10:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-a-script/m-p/4505204#M681028</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2009-09-29T20:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: help in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-a-script/m-p/4505205#M681029</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# vgdisplay|awk '/^VG Name/ {X=$NF};/^Max PE per PV/ {X=X" "$0};/^VGDA/ {print X" "$0}'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Sep 2009 20:22:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-a-script/m-p/4505205#M681029</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-09-29T20:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: help in a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-a-script/m-p/4505206#M681030</link>
      <description>vgdisplay | egrep "Max PE per PV|VGDA" | sed -n '/Max/{N;s/\n//;p;}'</description>
      <pubDate>Tue, 29 Sep 2009 21:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-a-script/m-p/4505206#M681030</guid>
      <dc:creator>Tingli</dc:creator>
      <dc:date>2009-09-29T21:37:05Z</dc:date>
    </item>
  </channel>
</rss>

