<?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: please help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2576761#M858600</link>
    <description>Try this,&lt;BR /&gt;&lt;BR /&gt; awk -F":" '{print $(NF-1)}' myfile&lt;BR /&gt;&lt;BR /&gt;Cheers...&lt;BR /&gt;Satish.</description>
    <pubDate>Fri, 07 Sep 2001 06:11:09 GMT</pubDate>
    <dc:creator>Satish Y</dc:creator>
    <dc:date>2001-09-07T06:11:09Z</dc:date>
    <item>
      <title>please help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2576756#M858595</link>
      <description>I am doing a script which I want to grep the last username of a file. Assuming below is a list of username which contained in a file with delimiter ":". (It is continuous line) With what command so that I can get the last username "mutvomo".&lt;BR /&gt;&lt;BR /&gt;labdaulrr:lsaariunb:crupafng:ltafmbuna:mrginilas:mthgerlas:mlutthers:maeskum:mutvomo:</description>
      <pubDate>Fri, 07 Sep 2001 05:26:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2576756#M858595</guid>
      <dc:creator>Ken Lee_1</dc:creator>
      <dc:date>2001-09-07T05:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: please help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2576757#M858596</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If the sentence is of fixed length, you can use the cut command as follows:&lt;BR /&gt;&lt;BR /&gt;cut -f10 -d:&lt;BR /&gt;&lt;BR /&gt;Replace 10 with the number of the field you wish, e.g. if the last field is the 15th field, replace 10 by 15.&lt;BR /&gt;&lt;BR /&gt;Hope it helps,&lt;BR /&gt;Vince</description>
      <pubDate>Fri, 07 Sep 2001 05:39:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2576757#M858596</guid>
      <dc:creator>Vincent Farrugia</dc:creator>
      <dc:date>2001-09-07T05:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: please help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2576758#M858597</link>
      <description>The length of the file is not fixed. What should I do now?</description>
      <pubDate>Fri, 07 Sep 2001 05:48:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2576758#M858597</guid>
      <dc:creator>Ken Lee_1</dc:creator>
      <dc:date>2001-09-07T05:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: please help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2576759#M858598</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can count the number of : in the file first, that assumes that the result is the numbner of usernames resent in the file.&lt;BR /&gt;&lt;BR /&gt;This would be done using wc&lt;BR /&gt;&lt;BR /&gt;usernames=$(wc -c :)&lt;BR /&gt;&lt;BR /&gt;cut -f$usernames -d:&lt;BR /&gt;&lt;BR /&gt;Dunno whether it works like this, we don't have power on the servers at the moment, so I didn't have time to check the syntax.  It should be something like that though.&lt;BR /&gt;&lt;BR /&gt;Hope it helps,&lt;BR /&gt;Vince</description>
      <pubDate>Fri, 07 Sep 2001 05:55:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2576759#M858598</guid>
      <dc:creator>Vincent Farrugia</dc:creator>
      <dc:date>2001-09-07T05:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: please help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2576760#M858599</link>
      <description>Sorry, the wc command doesn't work like that...&lt;BR /&gt;&lt;BR /&gt;I'll have to come up with something else.&lt;BR /&gt;&lt;BR /&gt;SORRY</description>
      <pubDate>Fri, 07 Sep 2001 06:05:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2576760#M858599</guid>
      <dc:creator>Vincent Farrugia</dc:creator>
      <dc:date>2001-09-07T06:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: please help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2576761#M858600</link>
      <description>Try this,&lt;BR /&gt;&lt;BR /&gt; awk -F":" '{print $(NF-1)}' myfile&lt;BR /&gt;&lt;BR /&gt;Cheers...&lt;BR /&gt;Satish.</description>
      <pubDate>Fri, 07 Sep 2001 06:11:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/please-help/m-p/2576761#M858600</guid>
      <dc:creator>Satish Y</dc:creator>
      <dc:date>2001-09-07T06:11:09Z</dc:date>
    </item>
  </channel>
</rss>

