Wie realisiert man GID-Abfrage auf Gruppen?
Till Maas
opensource at till.name
Thu Mar 22 20:10:10 UTC 2007
On Do März 22 2007, Matthias Borrack wrote:
> Hat jemand eine Idee, wie ich die ID einer Gruppe abfragen kann, ohne
> einen Benutzer in der Gruppe zu haben und ohne die Verwendung von grep
> oder awk?
Wenn bash erlaubt ist:
GROUP=till LINE=$(getent group ${GROUP}) LINE2=$(echo ${LINE#*:*:}) echo
${LINE2%:*}
Grüße,
Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-de-list/attachments/20070322/b89b4443/attachment.sig>
More information about the Fedora-de-list
mailing list