![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| close existing tcp connection in C | raidzero | High Level Programming | 6 | 01-21-2009 02:41 PM |
| folder existing and file existing | crowman | Shell Programming and Scripting | 4 | 08-28-2008 07:07 PM |
| usermod -G and Group id login replacing existing groups | pbsrinivas | UNIX for Dummies Questions & Answers | 6 | 11-02-2006 10:09 PM |
| link a new .so with an existing .so | baosoccer | High Level Programming | 0 | 05-27-2003 02:17 PM |
| Assigning existing users to a secondary group | jyotipg | UNIX for Dummies Questions & Answers | 1 | 05-15-2002 04:45 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Yes, vi is what I would use. Here is something that should work if scripting is a requirement. I misunderstood the question in my first answer. Code:
usermod -G $(groups user| sed -e 's/.*: *//' -e 's/ */,/g'),group user |
|
||||
|
Quote:
![]() But, at work I usually use a combination of cut and tr to achieve the same; switching to this from now on. Thanks! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|