creating multiple groups in one line of command
how can i create multiple secondary groups, without script.
can you tell me the command used ? example: #]groupadd -r group1 group2 group3 Thanks Amit |
Code:
for group in group1 group2 group3;do groupadd -r ${group};done |
or you can use xargs:
Code:
echo group1 group2 group3 | xargs -n 1 groupadd -r |
multiple groups without code
Thanks for the reply but I need command not code.
Please help me with some terminal commands, example ]# Groupadd -r Thanks |
Quote:
Quote:
Quote:
|
Groupadd only adds one group at a time.
|
Thanks, ten tenths, smalpond.
Thanks |
All times are GMT -5. The time now is 05:12 PM. |