<?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: Shell script. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506775#M892089</link>
    <description>The 'sed' command can do it too-&lt;BR /&gt;&lt;BR /&gt;ipcs -mob | sed  -e '1d;$d'</description>
    <pubDate>Mon, 19 Mar 2001 17:17:40 GMT</pubDate>
    <dc:creator>Rodney Hills</dc:creator>
    <dc:date>2001-03-19T17:17:40Z</dc:date>
    <item>
      <title>Shell script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506770#M892084</link>
      <description>Following is the output of the ipcs command:&lt;BR /&gt;&lt;BR /&gt;# ipcs -mob |sort -k 5&lt;BR /&gt;&lt;BR /&gt;Shared Memory:&lt;BR /&gt;T      ID     KEY        MODE        OWNER     GROUP NATTCH  SEGSZ&lt;BR /&gt;m     537 0x441806fc --rw-r--rw-      root       sys      0  13812&lt;BR /&gt;m    3093 0x491806fc --rw-r--rw-      root       sys      0  16344&lt;BR /&gt;m      26 0x411806fc --rw-r--rw-      root       sys      1 4508024&lt;BR /&gt;m      23 0xe0da3354 --rw-r-----    ora816       dba      6 36040704&lt;BR /&gt;m   20504 0xa122aef0 --rw-r-----    ora816       dba      6 81096704&lt;BR /&gt;m   11803 0x6a7dfce7 --rw-r-----    oracle       dba      6 8290304&lt;BR /&gt;m   12304 0x55fef118 --rw-r-----    oracle       dba      7 5439488&lt;BR /&gt;IPC status from /dev/kmem as of Mon Mar 19 11:09:21 2001&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But I want the output without the headers and footers like:&lt;BR /&gt;&lt;BR /&gt;m     537 0x441806fc --rw-r--rw-      root       sys      0  13812&lt;BR /&gt;m    3093 0x491806fc --rw-r--rw-      root       sys      0  16344&lt;BR /&gt;m      26 0x411806fc --rw-r--rw-      root       sys      1 4508024&lt;BR /&gt;m      23 0xe0da3354 --rw-r-----    ora816       dba      6 36040704&lt;BR /&gt;m   20504 0xa122aef0 --rw-r-----    ora816       dba      6 81096704&lt;BR /&gt;m   11803 0x6a7dfce7 --rw-r-----    oracle       dba      6 8290304&lt;BR /&gt;m   12304 0x55fef118 --rw-r-----    oracle       dba      7 5439488&lt;BR /&gt;&lt;BR /&gt;How to get this output.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 19 Mar 2001 16:27:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506770#M892084</guid>
      <dc:creator>Gulam Mohiuddin</dc:creator>
      <dc:date>2001-03-19T16:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506771#M892085</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Take a look at following commands:&lt;BR /&gt;&lt;BR /&gt;head&lt;BR /&gt;tail&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;DD</description>
      <pubDate>Mon, 19 Mar 2001 16:35:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506771#M892085</guid>
      <dc:creator>Dieter Degrendele_1</dc:creator>
      <dc:date>2001-03-19T16:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506772#M892086</link>
      <description>You can use sed to strip off the first three lines of output from the ipcs command&lt;BR /&gt;&lt;BR /&gt;# ipcs -mob |sed -e '1,3d' |sort -k 5&lt;BR /&gt;m    1031 0x0000cace --rw-rw-rw-      root      root      0      2&lt;BR /&gt;m       0 0x411c0232 --rw-rw-rw-      root      root      0    348&lt;BR /&gt;m       6 0x53494152 --rw-r--r--      root      root      1    512&lt;BR /&gt;m       4 0x55315352 --rw-rw-rw-      root      root      1   4096&lt;BR /&gt;m       2 0x41200891 --rw-rw-rw-      root      root      1   8192&lt;BR /&gt;m       1 0x4e0c0002 --rw-rw-rw-      root      root      1  31040&lt;BR /&gt;m       3 0x4d4e5251 --rw-r--r--      root      root      3 109568&lt;BR /&gt;m       5 0x44525354 --rw-r--r--      root      root      4 393216&lt;BR /&gt;m  130568 0x5f36545a --rw-rw----    oracle       dba    131 735166464</description>
      <pubDate>Mon, 19 Mar 2001 16:44:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506772#M892086</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2001-03-19T16:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506773#M892087</link>
      <description>pipe to awk;&lt;BR /&gt;awk '/^m/{print}'&lt;BR /&gt;print line starting with a "m"</description>
      <pubDate>Mon, 19 Mar 2001 16:45:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506773#M892087</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2001-03-19T16:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506774#M892088</link>
      <description>You could also use grep.</description>
      <pubDate>Mon, 19 Mar 2001 16:54:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506774#M892088</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-03-19T16:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506775#M892089</link>
      <description>The 'sed' command can do it too-&lt;BR /&gt;&lt;BR /&gt;ipcs -mob | sed  -e '1d;$d'</description>
      <pubDate>Mon, 19 Mar 2001 17:17:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506775#M892089</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2001-03-19T17:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506776#M892090</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this,&lt;BR /&gt;# ipcs -mob |sort -k 5 | grep -Ev '^Shared|^T|^IPC'&lt;BR /&gt;&lt;BR /&gt; In above "^" means begins with&lt;BR /&gt; u can add more strings in single quotes using "|" symbol.&lt;BR /&gt;&lt;BR /&gt;u can also use:&lt;BR /&gt;# ipcs -mob |sort -k 5 | grep "^m "&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers...&lt;BR /&gt;Satish.</description>
      <pubDate>Mon, 19 Mar 2001 18:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script/m-p/2506776#M892090</guid>
      <dc:creator>Satish Y</dc:creator>
      <dc:date>2001-03-19T18:50:30Z</dc:date>
    </item>
  </channel>
</rss>

