Sponsored Content
Top Forums Shell Programming and Scripting Achieving group by logic via Unix Post 302134856 by ranj@chn on Tuesday 4th of September 2007 04:14:01 AM
Old 09-04-2007
Purpose?

What is the purpose and what are you trying to achieve? Could you be a little more clear on what you need?
Quote:
Fyi, awk can be used.
 

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Encrypt Unix Logic

Hi All, i have written small tool with the help of Unix & Oracle. Now I want to keep the logic with me for sometime, however at the same time want to distribute the tool to large audience. Can anyone suggest me, how I can hide the logic, any encrypting command etc. Quick reply would be appreciated.... (1 Reply)
Discussion started by: susau_79
1 Replies

2. Shell Programming and Scripting

UNIX shell scripting logic

This is my source file and required output is mentioned as below. Any input on how to proceed. start name=vamsi phone=123456789 mailid=abc@gmail.com adress:-india end start name=vamsi1 phone=1234567890 mailid=abc1@gmail.com adress:-usa end required output:... (15 Replies)
Discussion started by: vamsi.valiveti
15 Replies
newgrp(1)						      General Commands Manual							 newgrp(1)

NAME
newgrp - change effective group ID sg - execute command with different group ID SYNOPSIS
newgrp [-l] [group] sg group -c command DESCRIPTION
The newgrp command changes the user's real and effetive group ID by replacing the current shell with a new shell. A new shell is launched even if an error occours. A password is requested if the group has a password and the user is not listed in the group file as being a member of that group. The pass- word can be changed with the gpasswd(1) command. If the new effective group ID is not in the supplementary group list, newgrp will add the new group ID to the supplementary list, too. With no operands and options, newgrp changes the user's group IDs (real and effective) back to the group specified in password and group file. The sg command works like the newgrp command, except that it executes the given command with /bin/sh and upon exit the group ID of the cur- rent shell is not changed. OPTIONS
-l, --login reinitialize the environment as if the user logged in. --help Print a help list. -u, --usage Print a short usage message. -v, --version Print program version. SEE ALSO
gpasswd(1), group(5), passwd(1), passwd(5), su(1) AUTHOR
Thorsten Kukuk <kukuk@suse.de> pwdutils April 2004 newgrp(1)
All times are GMT -4. The time now is 05:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy