Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

groupinfo(8) [netbsd man page]

GROUPINFO(8)						    BSD System Manager's Manual 					      GROUPINFO(8)

NAME
groupinfo -- displays group information SYNOPSIS
groupinfo [-ev] group DESCRIPTION
The groupinfo utility retrieves the group information from the system. The groupinfo utility is only available if built with EXTENSIONS. See group(8) for more information. The following command line options are recognised: -e Return 0 if the group exists, and non-zero if the group does not exist, on the system. No information is displayed. This form of the command is useful for scripts which need to check whether a particular group name or gid is already in use on the system. -v Perform any actions in a verbose manner. The group argument may either be a group's name, or a gid. EXIT STATUS
The groupinfo utility exits 0 on success, and >0 if an error occurs. FILES
/etc/usermgmt.conf SEE ALSO
passwd(5), group(8) HISTORY
The groupinfo utility first appeared in NetBSD 1.5. It is based on the addnerd package by the same author. AUTHORS
The groupinfo utility was written by Alistair G. Crooks <agc@NetBSD.org>. BSD
November 7, 2005 BSD

Check Out this Related Man Page

USER(8) 						    BSD System Manager's Manual 						   USER(8)

NAME
user -- manage user login information on the system SYNOPSIS
user add -D [options] user add [options] user user del -D [options] user del [options] user user info [options] user user mod [options] user DESCRIPTION
The user utility acts as a frontend to the useradd(8), usermod(8), userinfo(8), and userdel(8) commands. The utilities by default are built with EXTENSIONS. This allows for further functionality. For a full explanation of the options available, please see the relevant manual page. EXIT STATUS
The user utility exits 0 on success, and >0 if an error occurs. FILES
/etc/skel/.[A-z]* Skeleton files for new user /etc/usermgmt.conf Configuration file for user, group(8) and the backend commands mentioned above. SEE ALSO
chpass(1), group(5), passwd(5), usermgmt.conf(5), useradd(8), userdel(8), userinfo(8), usermod(8) HISTORY
The user utility first appeared in NetBSD 1.5. It is based on the addnerd package by the same author. AUTHORS
The user utility was written by Alistair G. Crooks <agc@NetBSD.org>. BSD
November 16, 2005 BSD
Man Page

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Gunzip utility

Hi All, Is there any utility or command to read a .gz file without GUNZIPing it? Why I need this because of the huge size of the file. I am looking for something like zcat. Any help is aprreciated. Thanks in Advance.. Regards, rin... (1 Reply)
Discussion started by: rinku11
1 Replies

2. Shell Programming and Scripting

help! im stuck..

I want to search for the line with the group name and add the user into the group. The file format is the same as /etc/group The code i wrote is egrep "^$newGID" $group >/dev/null FS=":" oldData=awk -F: '{print $3}' newData= "$oldData,$newUser" sed -n $4/$newData $group but a friend... (1 Reply)
Discussion started by: cherrywinter
1 Replies

3. Shell Programming and Scripting

adding data behind a line

Hi, I need to search for the line with the particular group name and add the user into the group. The file format is the same as /etc/group The code i wrote is egrep "^$newGID" $group >/dev/null FS=":" oldData=awk -F: '{print $3}' newData= "$oldData,$newUser" sed -n $4/$newData $group... (1 Reply)
Discussion started by: cherrywinter
1 Replies

4. Shell Programming and Scripting

How to group the output w/ limit

Hi All, Second time to post on this group :) I'm pulling my hair now 'coz I'm so dumb to produce this requirement. Requirement: I want to run a utility by limiting the no. inside my process (mov##) to be able to use in multi streaming. Here is my script: --Input: "user_list.txt"... (0 Replies)
Discussion started by: alvingo
0 Replies

5. Shell Programming and Scripting

Adding per group and selecting consensus name

Hello gurus, I am having trouble selecting consensus name, if any, for each group in my data. The rules are 1. A group is defined by the first 2 columns. 2. The last column defines the name of the row within a group. If all rows within a group have the same name , we select that name as... (1 Reply)
Discussion started by: sheetalk
1 Replies

6. UNIX for Beginners Questions & Answers

HELP on 'sectional' or 'group' sorting

Hi, I need to do some section/group sorting. At the moment, I get around it by grep group by group and then re-directing to the same 'final' output file. Below is what's been sorted so far based on the second field $ awk -F"," '{ { print $5 " == " $6 } }' /tmp/x.csv | grep -v "^env" | grep... (2 Replies)
Discussion started by: newbie_01
2 Replies