Wlad Hanciuta wrote:
>
> 1. grep -i \^numele_grupului: /etc/group
> Intoarce 0 daca exista, 1 daca nu exista
>
> 2. gruid=`grep -i \^numele_grupului: /etc/group | cut -d: -f3`
> u1=`cut -d: -f1,4 /etc/passwd | grep :$gruid\$ | cut -d: -f1`
> u2=`grep -i \^numele_grupului: /etc/group | cut -d: -f4 | tr , ' '`
> echo $u1 $u2 | tr ' ' \\n | sort | uniq | xargs
Ok, vad ca toata lumea zice s-o fac cu script. Asa o s-o fac.
--
Florin Andrei
mailto:[EMAIL PROTECTED] http://members.linuxstart.com/~florin/
tel: +40-93-261162
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.