<?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 Grep/Awk functionalty request in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461272#M771900</link>
    <description>Hi.&lt;BR /&gt;&lt;BR /&gt;I am looking for your assistance once again.&lt;BR /&gt;&lt;BR /&gt;This time I need to extract from a file the last field regardless of whether it is the fourth, fifth or sixth fields, for example&lt;BR /&gt;&lt;BR /&gt; 1679  &amp;lt;****** DWDW    COPY VWC87.&lt;BR /&gt; 1788  CR362 * HGHT HTYG    COPY VW4B0.&lt;BR /&gt; 1793  &amp;lt;** JHGF DERE HGFDE GGG COPY VW4C8.&lt;BR /&gt;&lt;BR /&gt;in this example I would need VWC87., VW4B0. and VW4C8. returned.&lt;BR /&gt;&lt;BR /&gt;Can anybody help please.&lt;BR /&gt;&lt;BR /&gt;Thanking you.&lt;BR /&gt;&lt;BR /&gt;Dave</description>
    <pubDate>Fri, 03 Nov 2000 11:51:09 GMT</pubDate>
    <dc:creator>Dave Walley</dc:creator>
    <dc:date>2000-11-03T11:51:09Z</dc:date>
    <item>
      <title>Grep/Awk functionalty request</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461272#M771900</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;I am looking for your assistance once again.&lt;BR /&gt;&lt;BR /&gt;This time I need to extract from a file the last field regardless of whether it is the fourth, fifth or sixth fields, for example&lt;BR /&gt;&lt;BR /&gt; 1679  &amp;lt;****** DWDW    COPY VWC87.&lt;BR /&gt; 1788  CR362 * HGHT HTYG    COPY VW4B0.&lt;BR /&gt; 1793  &amp;lt;** JHGF DERE HGFDE GGG COPY VW4C8.&lt;BR /&gt;&lt;BR /&gt;in this example I would need VWC87., VW4B0. and VW4C8. returned.&lt;BR /&gt;&lt;BR /&gt;Can anybody help please.&lt;BR /&gt;&lt;BR /&gt;Thanking you.&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Fri, 03 Nov 2000 11:51:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461272#M771900</guid>
      <dc:creator>Dave Walley</dc:creator>
      <dc:date>2000-11-03T11:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Grep/Awk functionalty request</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461273#M771901</link>
      <description>here the solution:&lt;BR /&gt;awk '{print $NF}' &lt;FILE&gt;&lt;/FILE&gt;</description>
      <pubDate>Fri, 03 Nov 2000 11:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461273#M771901</guid>
      <dc:creator>Rainer_1</dc:creator>
      <dc:date>2000-11-03T11:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Grep/Awk functionalty request</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461274#M771902</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;simply use:&lt;BR /&gt;awk '{print $NF}' file&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 03 Nov 2000 12:01:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461274#M771902</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-11-03T12:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Grep/Awk functionalty request</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461275#M771903</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;simply use:&lt;BR /&gt;awk '{print $NF}' file&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Fri, 03 Nov 2000 12:03:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461275#M771903</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-11-03T12:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Grep/Awk functionalty request</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461276#M771904</link>
      <description>Try awk '{print $NF}' yourfile. $NF is the last field of every line in yourfile. The whitspace is the default field seperator. If you want to use another field seperator use awk -F: .... (to use ':' as field seperator).&lt;BR /&gt;&lt;BR /&gt;Hpe this helps.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Stefan</description>
      <pubDate>Fri, 03 Nov 2000 12:09:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461276#M771904</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2000-11-03T12:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Grep/Awk functionalty request</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461277#M771905</link>
      <description>Try:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cat your_file | awk '{print $NF}' &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;federico</description>
      <pubDate>Fri, 03 Nov 2000 12:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461277#M771905</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2000-11-03T12:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Grep/Awk functionalty request</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461278#M771906</link>
      <description>Maybe a superfluous addition,&lt;BR /&gt;&lt;BR /&gt;you can do integer arithmetic with the awk qualifiers like NR, NF.&lt;BR /&gt;Sometimes some output produces inconsistent (or rather unpredictable) numbers of fields, but you know that the wanted field is always say n-2&lt;BR /&gt;&lt;BR /&gt;awk '{print $(NF-2)}' /your/file/to/parse&lt;BR /&gt;</description>
      <pubDate>Fri, 03 Nov 2000 13:31:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-awk-functionalty-request/m-p/2461278#M771906</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2000-11-03T13:31:14Z</dc:date>
    </item>
  </channel>
</rss>

