|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Bash/awk
I'm trying to write a script to change the users default
group in /etc/passwd: BEGIN { FS=":" } { print $1 if ($3 > 99) 'print $1' | "usermod -g mail $1" } /etc/passwd I don't know how to pass the option -g to usermod. Thanks in advance. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > Bash/awk |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|