<?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: script pid in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-pid/m-p/3999491#M296993</link>
    <description>Lines that contains only numbers:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;grep -E "^[0-9]*$" filename&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 14 May 2007 14:35:15 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2007-05-14T14:35:15Z</dc:date>
    <item>
      <title>script pid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-pid/m-p/3999488#M296990</link>
      <description>If my file looks like this:&lt;BR /&gt;&lt;BR /&gt;1506&lt;BR /&gt;/usr/lib/sendmail -bd -q15m&lt;BR /&gt;&lt;BR /&gt;how can I strip out the second line?&lt;BR /&gt;All I want is the pid number?&lt;BR /&gt;&lt;BR /&gt;10x RPM...</description>
      <pubDate>Mon, 14 May 2007 13:47:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-pid/m-p/3999488#M296990</guid>
      <dc:creator>Nobody's Hero</dc:creator>
      <dc:date>2007-05-14T13:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: script pid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-pid/m-p/3999489#M296991</link>
      <description>awk 'NR==1 {print}' /tmp/infile&lt;BR /&gt;&lt;BR /&gt;head -1 /tmp/infile&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 May 2007 13:49:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-pid/m-p/3999489#M296991</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2007-05-14T13:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: script pid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-pid/m-p/3999490#M296992</link>
      <description>Actually, if all you want to do is read one line of a file then simply read it. The shell's read command will read one line of a file and no external command like awk is required.&lt;BR /&gt;&lt;BR /&gt;read PID &amp;lt; myfile&lt;BR /&gt;echo "Pid = \"${PID}\"."</description>
      <pubDate>Mon, 14 May 2007 14:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-pid/m-p/3999490#M296992</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-05-14T14:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: script pid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-pid/m-p/3999491#M296993</link>
      <description>Lines that contains only numbers:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;grep -E "^[0-9]*$" filename&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 May 2007 14:35:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-pid/m-p/3999491#M296993</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-05-14T14:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: script pid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-pid/m-p/3999492#M296994</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;More than one way, sure:&lt;BR /&gt;&lt;BR /&gt;# sed -n '1p' file&lt;BR /&gt;&lt;BR /&gt;...prints only the first line.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 14 May 2007 14:40:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-pid/m-p/3999492#M296994</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-05-14T14:40:25Z</dc:date>
    </item>
  </channel>
</rss>

