# $Copyright:	$
# Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
# Sequent Computer Systems, Inc.   All rights reserved.
#  
# This software is furnished under a license and may be used
# only in accordance with the terms of that license and with the
# inclusion of the above copyright notice.   This software may not
# be provided or otherwise made available to, or used by, any
# other person.  No title to or ownership of the software is
# hereby transferred.
#ident	"$Header: lsgroup 1.2 89/10/10 $@(#)sadmin:admin/menu/usermgmt/lsgroup	1.3"
#menu# list groups in the system
#help#
#help#	Lsgroup will list all the groups that have been entered into
#help#	the computer using the "addgroup" command.  This list is
#help#	updated automatically by "addgroup" and "delgroup".

echo '
Groups currently in the computer:
(press <RETURN> to start printing each time you hear the bell)'

(echo 'group	group	logins permitted to become
name	number	members using newgrp
-----	------	--------------------------'
sed 's/$/:/
s/^\([^:]*\):[^:]*:\([^:]*\):\([^:]*\)/\1	\2	\3/p
s/:$//' /etc/group |
	sort
)  |
	pr -w79 -tp -l20 -e16 -
