From: Olvin <olvin@rambler.ru> To: community@altlinux.ru Subject: [Comm] Добавление пользователя в группу Date: Fri, 18 Feb 2005 12:38:19 +0200 Message-ID: <4215C59B.1010407@rambler.ru> (raw) Для сабжа в ALM2.4 сделал скриптики: #!/bin/sh #uatg usermod -G `id $1 | ~/bin/uatg.pl $2` $1 #!/usr/bin/perl #uatg.pl $a=<STDIN>; $a =~ s/\S+\s+\S+\s+//g; $a =~ s/[^\=]+\=//g; $a=~s/\d+\(//g; $a=~s/\)//g; $a=~s/[\n\r]+//g; @A = split(/\,/,$a); foreach $a(@A){ push(@B,$a); } push(@B,$ARGV[0]); $,=','; print @B; Думаю, что есть более прямой путь. Какой?
next reply other threads:[~2005-02-18 10:38 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-02-18 10:38 Olvin [this message] 2005-02-18 11:04 ` Mike Lykov 2005-02-18 11:05 ` Slava Dubrovskiy 2005-02-18 11:24 ` Olvin 2005-02-18 12:06 ` Mike Lykov 2005-02-18 23:23 ` Dmitry V. Levin 2005-02-23 15:45 ` [Comm] " Michael Shigorin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4215C59B.1010407@rambler.ru \ --to=olvin@rambler.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git