<?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/4974536#M102129</link>
    <description>awk '{(s+=$2)} END {printf "%d\n",s}' your_file</description>
    <pubDate>Thu, 20 Apr 2006 03:07:47 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2006-04-20T03:07:47Z</dc:date>
    <item>
      <title>awk help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/4974534#M102127</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am using awk to get a string of numbers from a file:&lt;BR /&gt;&lt;BR /&gt;cat file |awk '{print $2}'&lt;BR /&gt;&lt;BR /&gt;this gives me several numbers:&lt;BR /&gt;&lt;BR /&gt;25324&lt;BR /&gt;136753&lt;BR /&gt;234&lt;BR /&gt;1231214&lt;BR /&gt;&lt;BR /&gt;how can I now use awk to add these figures together so I can get a total?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 20 Apr 2006 02:54:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/4974534#M102127</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2006-04-20T02:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/4974535#M102128</link>
      <description>lawrenzo,&lt;BR /&gt;one-line solution:&lt;BR /&gt;cat file | awk 'BEGIN{N=0};{N+=$2};END{print N}'&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Apr 2006 03:04:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/4974535#M102128</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-04-20T03:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/4974536#M102129</link>
      <description>awk '{(s+=$2)} END {printf "%d\n",s}' your_file</description>
      <pubDate>Thu, 20 Apr 2006 03:07:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/4974536#M102129</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-04-20T03:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: awk help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/4974537#M102130</link>
      <description>great cheers guys</description>
      <pubDate>Thu, 20 Apr 2006 03:29:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-help/m-p/4974537#M102130</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2006-04-20T03:29:06Z</dc:date>
    </item>
  </channel>
</rss>

