<?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: entering 3000 lines in vi editor in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498162#M364516</link>
    <description>&amp;gt;entering 3000 character lines in vi editor&lt;BR /&gt;&lt;BR /&gt;You can use vim instead.</description>
    <pubDate>Wed, 16 Sep 2009 10:37:31 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-09-16T10:37:31Z</dc:date>
    <item>
      <title>entering 3000 lines in vi editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498156#M364510</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;    i have to add 3000 users in a group as a secondary group. when i am doing vi and try to save the file after entering these users against their group. it gives an error:-&lt;BR /&gt;&lt;BR /&gt;  line too long&lt;BR /&gt;&lt;BR /&gt;Please help on this as how can i enter my users in the group file.</description>
      <pubDate>Tue, 15 Sep 2009 21:55:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498156#M364510</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-09-15T21:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: entering 3000 lines in vi editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498157#M364511</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;This must be an early (&amp;lt; 11.0) release.&lt;BR /&gt;&lt;BR /&gt;You have reached 'vi' limits or for that matter the system's LINE_MAX.&lt;BR /&gt;&lt;BR /&gt;There is nothing to prevent you from declaring the same group multiple times with differing lists of users where the whole line remains in limits.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 15 Sep 2009 22:16:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498157#M364511</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-09-15T22:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: entering 3000 lines in vi editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498158#M364512</link>
      <description>also see the answers here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=959497" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=959497&lt;/A&gt;</description>
      <pubDate>Tue, 15 Sep 2009 22:20:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498158#M364512</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-09-15T22:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: entering 3000 lines in vi editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498159#M364513</link>
      <description>well, actually i have to update those users in NIS groups. i tried that also by creating multiple groups, but when i update the NIS maps, it takes only one group and leave others. &lt;BR /&gt;&lt;BR /&gt;and when i do with one group and all users, it gives "Line too long" error. &lt;BR /&gt;&lt;BR /&gt;i am able to enter groups by having same GID, but different groupname...but it does not solve my purpose.&lt;BR /&gt;&lt;BR /&gt;Any parameter, command or environment variable, i have to edit to do this.&lt;BR /&gt;&lt;BR /&gt;Please suggest.. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Sep 2009 22:23:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498159#M364513</guid>
      <dc:creator>Vishu</dc:creator>
      <dc:date>2009-09-15T22:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: entering 3000 lines in vi editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498160#M364514</link>
      <description>&lt;!--!*#--&gt;You don't actually like to enter 3000+ users using 'vi' do you? That's nasty!&lt;BR /&gt;&lt;BR /&gt;So why don't you do something convenient for yourself, like EXCEL or a VI for shorter lines and then use a tool like AWK or PERL or a script to glue it together. We have computers to help no?!&lt;BR /&gt;&lt;BR /&gt;If you used a convention of potentially repeated  group name in column 1 followed by a list of user then you could use something like:&lt;BR /&gt;&lt;BR /&gt;$ cat tmp.txt&lt;BR /&gt;aap one two three&lt;BR /&gt;aap een twee drie&lt;BR /&gt;noot four&lt;BR /&gt;mies five six seven&lt;BR /&gt;mies vijf zes zeven&lt;BR /&gt;mies cinque six sept&lt;BR /&gt;&lt;BR /&gt;$ perl -ne 'chomp; m/(\S+)(\s+\S.*)/;if ($1 ne $x) {print qq($x $y\n) if $x; $x=$1; $y=$2}&lt;BR /&gt;.=$2}; print "$x $y$2" if eof' tmp.txt&lt;BR /&gt;&lt;BR /&gt;aap  one two three een twee drie&lt;BR /&gt;noot  four&lt;BR /&gt;mies  five six seven vijf zes zeven cinque six sept cinque six sept&lt;BR /&gt;&lt;BR /&gt;BYu can use any  format you like.&lt;BR /&gt;Like "--- name" to start a fresh group, and the users 'naked' on the next lines.&lt;BR /&gt;&lt;BR /&gt;But where do those names come from? Surely from some computer output? How about using that form input?&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Sep 2009 02:15:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498160#M364514</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2009-09-16T02:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: entering 3000 lines in vi editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498161#M364515</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you are not able to open your passwd file into vi then do one think ftp your passwd file into your desktop open in excel and add secondry group save as the file as suppose npasswd.csv&lt;BR /&gt;now open your npasswd.csv file into a notepad find and replace all , with ; and save it&lt;BR /&gt;&lt;BR /&gt;put again into /tmp/npasswd.csb&lt;BR /&gt;make a cp of your passwd file &lt;BR /&gt;cp /etc/passwd /etc/passwd.today's date&lt;BR /&gt;then mv /tmp/npasswd.csv /etc/passwd&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Wed, 16 Sep 2009 04:10:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498161#M364515</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-09-16T04:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: entering 3000 lines in vi editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498162#M364516</link>
      <description>&amp;gt;entering 3000 character lines in vi editor&lt;BR /&gt;&lt;BR /&gt;You can use vim instead.</description>
      <pubDate>Wed, 16 Sep 2009 10:37:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498162#M364516</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-09-16T10:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: entering 3000 lines in vi editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498163#M364517</link>
      <description>"You can use vim instead."&lt;BR /&gt;&lt;BR /&gt;you could, but, IIRC, you still run into issues with the max length of a line in the group file itself.</description>
      <pubDate>Wed, 16 Sep 2009 10:52:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498163#M364517</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2009-09-16T10:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: entering 3000 lines in vi editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498164#M364518</link>
      <description>try vipw command , its exclusively for passwd file</description>
      <pubDate>Tue, 22 Sep 2009 10:25:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498164#M364518</guid>
      <dc:creator>Atul Ram Sahu</dc:creator>
      <dc:date>2009-09-22T10:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: entering 3000 lines in vi editor</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498165#M364519</link>
      <description>HI Atul,&lt;BR /&gt;&amp;gt;&amp;gt;try vipw command , its exclusively for passwd file&lt;BR /&gt;&lt;BR /&gt;insted of giving vi /etc/passwd, vipw is for edit /etc/passwd into vi editor no need to give /etc/passwd again.&lt;BR /&gt;&lt;BR /&gt;just give vipw it will open your /etc/passwd file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Tue, 22 Sep 2009 10:37:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/entering-3000-lines-in-vi-editor/m-p/4498165#M364519</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-09-22T10:37:19Z</dc:date>
    </item>
  </channel>
</rss>

