<?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 per GID in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-per-gid/m-p/5027274#M760435</link>
    <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;How can i use grep to return if matching in GID&lt;BR /&gt;only and not UID as below.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Tom&lt;BR /&gt;&lt;BR /&gt;cat /etc/passwd |grep  110&lt;BR /&gt;(this one will return 3 lines,i want it to return 2 line when matching GID)&lt;BR /&gt;&lt;BR /&gt;oracle:45ILmhXeUATVI:110:103:,,,:/home/oracle:/usr/bin/sh&lt;BR /&gt;tttt:V/X19.H/w5L6.:133:110:,,,:/home/tttt:/usr/bin/sh&lt;BR /&gt;kkkk:naIDu5DEtwiME:131:110::/home/kkkk:/sbin/sh&lt;BR /&gt;</description>
    <pubDate>Wed, 07 Feb 2007 20:47:56 GMT</pubDate>
    <dc:creator>tom quach_1</dc:creator>
    <dc:date>2007-02-07T20:47:56Z</dc:date>
    <item>
      <title>grep per GID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-per-gid/m-p/5027274#M760435</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;How can i use grep to return if matching in GID&lt;BR /&gt;only and not UID as below.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Tom&lt;BR /&gt;&lt;BR /&gt;cat /etc/passwd |grep  110&lt;BR /&gt;(this one will return 3 lines,i want it to return 2 line when matching GID)&lt;BR /&gt;&lt;BR /&gt;oracle:45ILmhXeUATVI:110:103:,,,:/home/oracle:/usr/bin/sh&lt;BR /&gt;tttt:V/X19.H/w5L6.:133:110:,,,:/home/tttt:/usr/bin/sh&lt;BR /&gt;kkkk:naIDu5DEtwiME:131:110::/home/kkkk:/sbin/sh&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Feb 2007 20:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-per-gid/m-p/5027274#M760435</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2007-02-07T20:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: grep per GID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-per-gid/m-p/5027275#M760436</link>
      <description>There are many ways but grep is probably not the answer (well grep -E maybe) but awk or Perl is much easier:&lt;BR /&gt;&lt;BR /&gt;awk -F ':' '{ if ($4 == 110) print $0}' &amp;lt; /etc/passwd&lt;BR /&gt;&lt;BR /&gt;The -F ':' makes a colon the field separator and we simply output the entire line ($0) when field 4 equals 110.&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Feb 2007 20:59:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-per-gid/m-p/5027275#M760436</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-02-07T20:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: grep per GID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grep-per-gid/m-p/5027276#M760437</link>
      <description>Thanks A. Clay &lt;BR /&gt;&lt;BR /&gt;That would do it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tom</description>
      <pubDate>Thu, 08 Feb 2007 01:41:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grep-per-gid/m-p/5027276#M760437</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2007-02-08T01:41:32Z</dc:date>
    </item>
  </channel>
</rss>

