<?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: cut, sed and awk - edit /etc/group in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836656#M90306</link>
    <description>Hi,&lt;BR /&gt;try the attached script, using /etc/group as $1. If it does not work, please post a few lines of your input as attachment.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
    <pubDate>Thu, 31 Oct 2002 12:06:16 GMT</pubDate>
    <dc:creator>john korterman</dc:creator>
    <dc:date>2002-10-31T12:06:16Z</dc:date>
    <item>
      <title>cut, sed and awk - edit /etc/group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836653#M90303</link>
      <description>How do i edit using sed,awk or cut  make /etc/group in format to &lt;BR /&gt;&lt;BR /&gt;users::20:user1,users2 .. user130&lt;BR /&gt;&lt;BR /&gt;to the following format&lt;BR /&gt;&lt;BR /&gt;users::20:user1,user2... user65&lt;BR /&gt;users::20:user66,useruser67 .. user130&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Aravind</description>
      <pubDate>Thu, 31 Oct 2002 08:43:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836653#M90303</guid>
      <dc:creator>Aravind_3</dc:creator>
      <dc:date>2002-10-31T08:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: cut, sed and awk - edit /etc/group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836654#M90304</link>
      <description>Hi&lt;BR /&gt;you can separate the line with&lt;BR /&gt;sed 's/user65,/user65\^Jusers::20:/g' /etc/group&lt;BR /&gt;&lt;BR /&gt;Attention: you can not copy and paste this line because the ^J is a "Cntrl-V Cntrl-J"&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Oct 2002 09:24:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836654#M90304</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2002-10-31T09:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: cut, sed and awk - edit /etc/group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836655#M90305</link>
      <description>#!/bin/ksh&lt;BR /&gt;awk 'sub("user65,","user65\nuserA::20:")' file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Oct 2002 10:54:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836655#M90305</guid>
      <dc:creator>Aravind_3</dc:creator>
      <dc:date>2002-10-31T10:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: cut, sed and awk - edit /etc/group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836656#M90306</link>
      <description>Hi,&lt;BR /&gt;try the attached script, using /etc/group as $1. If it does not work, please post a few lines of your input as attachment.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Thu, 31 Oct 2002 12:06:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836656#M90306</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2002-10-31T12:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: cut, sed and awk - edit /etc/group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836657#M90307</link>
      <description>&lt;BR /&gt;Try the attached perl program.&lt;BR /&gt;&lt;BR /&gt;It will create a new group file without CLOBBERING the original, it's up to you to move them around (icd /etc;mv group orig_group;mv newgroup group)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 31 Oct 2002 13:39:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836657#M90307</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-10-31T13:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: cut, sed and awk - edit /etc/group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836658#M90308</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Attached you will find a script I wrote for the same purpose a while ago.  It creates N-many '/tmp/group20.N' files each of up to 200 accounts by reading '/etc/passwd' and collecting all accounts belonging to group-20.&lt;BR /&gt;&lt;BR /&gt;Run the script.  Then edit '/etc/group' to remove the original group-20 specifications and insert the N-many '/tmp/group20.N' files created.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 31 Oct 2002 14:10:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836658#M90308</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-10-31T14:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: cut, sed and awk - edit /etc/group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836659#M90309</link>
      <description>More solutions here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc87787dc4d7dd5118ff00090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc87787dc4d7dd5118ff00090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Oct 2002 21:34:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-sed-and-awk-edit-etc-group/m-p/2836659#M90309</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2002-10-31T21:34:56Z</dc:date>
    </item>
  </channel>
</rss>

