<?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: Strings the user group in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769056#M389846</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try with attached script. Please check and customize three variables inside. From the placement where you run the script a new group.mod file will be created. Your original /etc/group file will be unchanged.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
    <pubDate>Fri, 25 Mar 2011 10:45:46 GMT</pubDate>
    <dc:creator>Jose Mosquera</dc:creator>
    <dc:date>2011-03-25T10:45:46Z</dc:date>
    <item>
      <title>Strings the user group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769053#M389843</link>
      <description>Hi Guru,&lt;BR /&gt;&lt;BR /&gt;Our problem is when more then 500 user in one group, we are unable to see the that group user. &lt;BR /&gt;&lt;BR /&gt;for example &lt;BR /&gt;&lt;BR /&gt;group sb , actually this group have more than 500 user inside . but when i edit the group (/etc , vi group) cannot to see the user name . error like below . so i think we need to strings the group . we have tried command : strings group group.string . but still same . &lt;BR /&gt;&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;@&lt;BR /&gt;&lt;BR /&gt;Any idea.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Chui&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Mar 2011 10:21:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769053#M389843</guid>
      <dc:creator>Chui Kock You_1</dc:creator>
      <dc:date>2011-03-23T10:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Strings the user group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769054#M389844</link>
      <description>This is normal for vi...your group file is fine. The first thing to do is to expaned your terminal emulator so it is more than 100 characters wide, perhaps 150. But the better way to fix the group file is to break up the IDs for the same group into multiple lines:&lt;BR /&gt; &lt;BR /&gt;Before:&lt;BR /&gt;users::20:blh,abc,def,xyz,aaa,bbb,ccc...really long...&lt;BR /&gt; &lt;BR /&gt;After:&lt;BR /&gt; &lt;BR /&gt;users::20:blh,abc,def,xyz&lt;BR /&gt;users::20:aaa,bbb,ccc&lt;BR /&gt;users::20:dddd,ee,ffff,ggg&lt;BR /&gt;users::20:qwer,asdf,zxcv&lt;BR /&gt; &lt;BR /&gt;and so on. You can repeat the same group ID as many times as you want.</description>
      <pubDate>Wed, 23 Mar 2011 11:52:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769054#M389844</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2011-03-23T11:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Strings the user group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769055#M389845</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;Do you the command line on how to break up the IDs for the same group?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Chui</description>
      <pubDate>Fri, 25 Mar 2011 08:17:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769055#M389845</guid>
      <dc:creator>Chui Kock You_1</dc:creator>
      <dc:date>2011-03-25T08:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Strings the user group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769056#M389846</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try with attached script. Please check and customize three variables inside. From the placement where you run the script a new group.mod file will be created. Your original /etc/group file will be unchanged.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Fri, 25 Mar 2011 10:45:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769056#M389846</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-03-25T10:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Strings the user group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769057#M389847</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;Previous script have a bug, please try with this new one.&lt;BR /&gt;&lt;BR /&gt;Rgds.</description>
      <pubDate>Fri, 25 Mar 2011 12:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769057#M389847</guid>
      <dc:creator>Jose Mosquera</dc:creator>
      <dc:date>2011-03-25T12:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Strings the user group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769058#M389848</link>
      <description>&lt;BR /&gt;Try this 'one liner':&lt;BR /&gt;&lt;BR /&gt;perl -pe 'm /^(\w+::\d+:)/; $grp=$1; s/((,[^,]+){8})./$1\n$grp/g' &amp;lt; long &amp;gt; short&lt;BR /&gt;&lt;BR /&gt;explanation:&lt;BR /&gt;&lt;BR /&gt;-pe  # loop over input and print after processing&lt;BR /&gt;m /^(\w+::\d+:)/;   # match the group name and number&lt;BR /&gt;$grp=$1; # remember group name and number&lt;BR /&gt;&lt;BR /&gt;s/((,[^,]+){7}),/$1\n$grp/g' # look for 7 groups of a comma followed by a series of non-commas, and followed by a comma&lt;BR /&gt;Replace those with a newline, the group and the itself.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein&lt;BR /&gt;&lt;BR /&gt;notes...&lt;BR /&gt;&lt;BR /&gt;To test this I used perl to generate some long lines:&lt;BR /&gt;&lt;BR /&gt;$ perl -le 'print qq(aap::20:), join q(,),(1000..1070)' &amp;gt;&amp;gt; long&lt;BR /&gt;&lt;BR /&gt;Personally I would probably use a some script, not a one-liner and add more control like SORTing the element.&lt;BR /&gt;&lt;BR /&gt;while (&amp;lt;&amp;gt;) { &lt;BR /&gt;  m /(\w+::\d+:)(.*)/; &lt;BR /&gt;  $grp=$1; &lt;BR /&gt;  @mem=sort split /,/,$2;&lt;BR /&gt;  $tmp = $grp; &lt;BR /&gt;  $m = 0;&lt;BR /&gt;  for (@mem) { &lt;BR /&gt;      print $tmp,$_; &lt;BR /&gt;      $tmp = ( ++$m % 7) ? q(,) : qq(\n$grp);&lt;BR /&gt;  }&lt;BR /&gt;  print qq(\n);&lt;BR /&gt;}</description>
      <pubDate>Fri, 25 Mar 2011 13:07:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769058#M389848</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2011-03-25T13:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Strings the user group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769059#M389849</link>
      <description>Have you tried vim to edit your file?</description>
      <pubDate>Fri, 25 Mar 2011 22:32:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769059#M389849</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-03-25T22:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Strings the user group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769060#M389850</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Do you the command line for vim?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Chui</description>
      <pubDate>Mon, 28 Mar 2011 02:55:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769060#M389850</guid>
      <dc:creator>Chui Kock You_1</dc:creator>
      <dc:date>2011-03-28T02:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Strings the user group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769061#M389851</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Sorry. Forgot to add a word? Do you have the command line for vim?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Chui</description>
      <pubDate>Mon, 28 Mar 2011 02:58:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769061#M389851</guid>
      <dc:creator>Chui Kock You_1</dc:creator>
      <dc:date>2011-03-28T02:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Strings the user group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769062#M389852</link>
      <description>&amp;gt; Do you have the command line for vim?&lt;BR /&gt;&lt;BR /&gt;vim is gnu tool which install under /usr/local&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Editors/vim-7.3/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Editors/vim-7.3/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;it is AFAIK also part of the Internet Express DVD&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Mar 2011 08:41:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769062#M389852</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2011-03-28T08:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Strings the user group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769063#M389853</link>
      <description>&amp;gt;Do you have the command line for vim?&lt;BR /&gt;&lt;BR /&gt;vim is a new and improved vi that doesn't have all the limitations of line size, etc.</description>
      <pubDate>Sat, 02 Apr 2011 06:32:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/strings-the-user-group/m-p/4769063#M389853</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-04-02T06:32:30Z</dc:date>
    </item>
  </channel>
</rss>

