<?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: awk help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2553224#M28406</link>
    <description>Thanks for the reply, I just got this to work&lt;BR /&gt;awk '{print $(NF -3)}'&lt;BR /&gt;because NF is actually the command field in the jobs output.</description>
    <pubDate>Mon, 16 Jul 2001 16:16:58 GMT</pubDate>
    <dc:creator>Kevin Wright</dc:creator>
    <dc:date>2001-07-16T16:16:58Z</dc:date>
    <item>
      <title>awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2553222#M28404</link>
      <description>I am writing a script to kill background jobs using jobs -l and using awk to get the process id's..however, the first two lines have a + and a - in the second field, so if I awk '{print $3}', I get the first two PID's and then for the last two I get 'Running'..anyone know of anyway around this?&lt;BR /&gt;[4] + 18982      Running                &lt;BR /&gt;[3] - 18981      Running                 &lt;BR /&gt;[2]   18980      Running                 &lt;BR /&gt;[1]   18979      Running</description>
      <pubDate>Mon, 16 Jul 2001 15:57:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2553222#M28404</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-07-16T15:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2553223#M28405</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I played with awk and I got this line to work:&lt;BR /&gt;&lt;BR /&gt;awk '{i=NF-1; print $i}'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The NF variable is the number of fields on the input line.  This sets the variable 'i' to one less than NF and prints it.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jul 2001 16:13:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2553223#M28405</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2001-07-16T16:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2553224#M28406</link>
      <description>Thanks for the reply, I just got this to work&lt;BR /&gt;awk '{print $(NF -3)}'&lt;BR /&gt;because NF is actually the command field in the jobs output.</description>
      <pubDate>Mon, 16 Jul 2001 16:16:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-help/m-p/2553224#M28406</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2001-07-16T16:16:58Z</dc:date>
    </item>
  </channel>
</rss>

