<?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: get certain fields within an output in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042073#M95797</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use following if ur i/p to awk is &lt;BR /&gt;&lt;BR /&gt;info1 info2 info3 info4&lt;BR /&gt;info5 info6 info7 info8&lt;BR /&gt;info9 info10 info11 info12&lt;BR /&gt;info13 info14 info15 info16&lt;BR /&gt;--------------------------&lt;BR /&gt;# awk '{print $4}' &lt;UR_FILE&gt;&lt;BR /&gt;--------------------------&lt;BR /&gt;&lt;BR /&gt;but I don't understand what do u mean by this&lt;BR /&gt;&lt;BR /&gt;--------------------------&lt;BR /&gt;how do I use awk to print info4, info8 and info 12 please, the only common denominator in the sting is PP however this string will appear in info5 and info9 for example.&lt;BR /&gt;---------------------------&lt;BR /&gt;&lt;BR /&gt;Pl. elaborate above.&lt;/UR_FILE&gt;</description>
    <pubDate>Tue, 24 Apr 2007 05:44:13 GMT</pubDate>
    <dc:creator>SANTOSH S. MHASKAR</dc:creator>
    <dc:date>2007-04-24T05:44:13Z</dc:date>
    <item>
      <title>get certain fields within an output</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042069#M95793</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;more awk help needed please:&lt;BR /&gt;&lt;BR /&gt;I want to print some information in awk:&lt;BR /&gt;&lt;BR /&gt;info1  info2  info3 info4&lt;BR /&gt;info5  info6  info7 info8&lt;BR /&gt;info9  info10 info11 info12&lt;BR /&gt;info13 info14 info15 info16&lt;BR /&gt;&lt;BR /&gt;this is an example output ...&lt;BR /&gt;&lt;BR /&gt;how do I use awk to print info4, info8 and info 12 please, the only common denominator in the sting is PP however this string will appear in info5 and info9 for example.&lt;BR /&gt;&lt;BR /&gt;hope this makes sense!&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Tue, 24 Apr 2007 05:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042069#M95793</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2007-04-24T05:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: get certain fields within an output</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042070#M95794</link>
      <description>In your case, the content of the field doesn't matter. You're wanting the fourth field of each line. Assuming the data is in a file called datafile:&lt;BR /&gt;&lt;BR /&gt;awk '{print $4}' datafile</description>
      <pubDate>Tue, 24 Apr 2007 05:21:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042070#M95794</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2007-04-24T05:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: get certain fields within an output</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042071#M95795</link>
      <description>doh,&lt;BR /&gt;&lt;BR /&gt;as easy as that ....&lt;BR /&gt;&lt;BR /&gt;I knew this but wasnt thinking ...&lt;BR /&gt;&lt;BR /&gt;Thanks for the help.</description>
      <pubDate>Tue, 24 Apr 2007 05:41:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042071#M95795</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2007-04-24T05:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: get certain fields within an output</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042072#M95796</link>
      <description>Hi Chris&lt;BR /&gt;&lt;BR /&gt;In awk $"column number" displays the whole column values.&lt;BR /&gt;lets say for example you wnat to print 4th cloumn you may use&lt;BR /&gt;awk '{print $4}'. I assume from your  query that you wanted to print the whole 4th column, though you had missed info16&lt;BR /&gt;&lt;BR /&gt;rgds&lt;BR /&gt;perumal&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Apr 2007 05:43:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042072#M95796</guid>
      <dc:creator>perumal_2</dc:creator>
      <dc:date>2007-04-24T05:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: get certain fields within an output</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042073#M95797</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use following if ur i/p to awk is &lt;BR /&gt;&lt;BR /&gt;info1 info2 info3 info4&lt;BR /&gt;info5 info6 info7 info8&lt;BR /&gt;info9 info10 info11 info12&lt;BR /&gt;info13 info14 info15 info16&lt;BR /&gt;--------------------------&lt;BR /&gt;# awk '{print $4}' &lt;UR_FILE&gt;&lt;BR /&gt;--------------------------&lt;BR /&gt;&lt;BR /&gt;but I don't understand what do u mean by this&lt;BR /&gt;&lt;BR /&gt;--------------------------&lt;BR /&gt;how do I use awk to print info4, info8 and info 12 please, the only common denominator in the sting is PP however this string will appear in info5 and info9 for example.&lt;BR /&gt;---------------------------&lt;BR /&gt;&lt;BR /&gt;Pl. elaborate above.&lt;/UR_FILE&gt;</description>
      <pubDate>Tue, 24 Apr 2007 05:44:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042073#M95797</guid>
      <dc:creator>SANTOSH S. MHASKAR</dc:creator>
      <dc:date>2007-04-24T05:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: get certain fields within an output</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042074#M95798</link>
      <description>ok thannks guys,&lt;BR /&gt;&lt;BR /&gt;I wasnt thinking straight:&lt;BR /&gt;&lt;BR /&gt;my solution is&lt;BR /&gt;&lt;BR /&gt;awk '/PPs:/ {print $4,$5": "$6}' datafile</description>
      <pubDate>Tue, 24 Apr 2007 05:46:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042074#M95798</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2007-04-24T05:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: get certain fields within an output</title>
      <link>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042075#M95799</link>
      <description>ty</description>
      <pubDate>Tue, 24 Apr 2007 05:47:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/get-certain-fields-within-an-output/m-p/5042075#M95799</guid>
      <dc:creator>lawrenzo_1</dc:creator>
      <dc:date>2007-04-24T05:47:03Z</dc:date>
    </item>
  </channel>
</rss>

