<?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 - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/5027105#M97470</link>
    <description>This is probably much faster if your file has zillions of lines:&lt;BR /&gt;$ awk 'NR==2 {print $2; exit 0}'</description>
    <pubDate>Wed, 07 Feb 2007 07:06:48 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-02-07T07:06:48Z</dc:date>
    <item>
      <title>awk help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/5027103#M97468</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am trying to use awk to manipulate some data:&lt;BR /&gt;&lt;BR /&gt;heading1 heading2 heading3&lt;BR /&gt;2            4      7&lt;BR /&gt;34           45     1&lt;BR /&gt;&lt;BR /&gt;service&lt;BR /&gt;xyz          17&lt;BR /&gt;&lt;BR /&gt;I use awk to print the first line after heading:&lt;BR /&gt;&lt;BR /&gt;awk 'NR&amp;gt;1 {print $2}'&lt;BR /&gt;&lt;BR /&gt;i get &lt;BR /&gt;&lt;BR /&gt;4&lt;BR /&gt;45&lt;BR /&gt;&lt;BR /&gt;how can I just display the first number in heading2 which shoud be 4?&lt;BR /&gt;&lt;BR /&gt;many thanks</description>
      <pubDate>Wed, 07 Feb 2007 06:52:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/5027103#M97468</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2007-02-07T06:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/5027104#M97469</link>
      <description>awk 'NR==2 {print $2}'</description>
      <pubDate>Wed, 07 Feb 2007 06:55:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/5027104#M97469</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-02-07T06:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/5027105#M97470</link>
      <description>This is probably much faster if your file has zillions of lines:&lt;BR /&gt;$ awk 'NR==2 {print $2; exit 0}'</description>
      <pubDate>Wed, 07 Feb 2007 07:06:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/5027105#M97470</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-02-07T07:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/5027106#M97471</link>
      <description>nice one - thanks Dennis&lt;BR /&gt;&lt;BR /&gt;another awk string to add to me bow.&lt;BR /&gt;&lt;BR /&gt;Chris.</description>
      <pubDate>Wed, 07 Feb 2007 07:10:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/5027106#M97471</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2007-02-07T07:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/5027107#M97472</link>
      <description>This has no test for record 2:&lt;BR /&gt;awk 'BEGIN { getline; getline; print $2; exit 0}'</description>
      <pubDate>Wed, 07 Feb 2007 07:17:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/5027107#M97472</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-02-07T07:17:24Z</dc:date>
    </item>
  </channel>
</rss>

