10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am using RHEL 6.9. I got a requirement to group the records in a file.The file content as shown below.
#### FAILED JOBS IN XXX #####
1> ABCD failed in the project XXX
2> HJK Job is in compiled state in the project XXX
3> ILKD failed in the project XXX
4> DFG failed in the... (5 Replies)
Discussion started by: ginrkf
2. UNIX for Beginners Questions & Answers
My input looks like that:
Using awk, I am trying to get:
For records with same $1, group all the $2 in a field (without replicates), and all the $3 in a field (without replicates).
What I have tried:... (6 Replies)
Discussion started by: beca123456
3. Shell Programming and Scripting
I have below record set. File is fixed widht file
101nboston us 20150103
102boston us 20140106
102boston us 20140103
I need to group record based on first 3 letters in our case(101 and 102)
and sort last 8 digit in ascending order and print only... (4 Replies)
Discussion started by: patricjemmy6
4. UNIX for Advanced & Expert Users
I have records in a file with name,SSO,openitems,manageremail with | delimited file.Now i want to group the records by SSO and openitems and send email to their manageremail.
email@example.com... (2 Replies)
Discussion started by: kiranparsha
5. UNIX for Dummies Questions & Answers
Among records from same group (i.e. with same 1st and 2nd field - separated by ";"), I would need to keep the last record... (5 Replies)
Discussion started by: beca123456
6. Infrastructure Monitoring
I have a file has following records
policy glb id 1233 name Permit ping from "One" to "Second" "Address1" "Any" "ICMP-ANY" permit
policy id 999251
policy glb id 1234 name Permit telnet from "One" to "Second" "Address2" "Any" "TCP-ANY" permit
policy id 1234... (3 Replies)
Discussion started by: baskar
7. Shell Programming and Scripting
I have records like this
D457@dm.com,457,571,NORTT,25/08/2009 23:59... (4 Replies)
Discussion started by: trichyselva
8. Shell Programming and Scripting
I've a file like below:
I've another file which has
------ ------ (3 Replies)
Discussion started by: Matrix2682
9. Shell Programming and Scripting
I want to get help for below case.
I have a file like this.
so i want to get the result,
ravi 3 like this.
Pls help me. (17 Replies)
Discussion started by: Nayanajith
10. UNIX for Advanced & Expert Users
I have this file which has 3 columns, District , stores and unit. What I want is all rows belonging to one district to be created separately under each district, the districts may vary every day , the source file may have 3 districts today and may have 160 tomorrow, so what I need is a... (20 Replies)
Discussion started by: thumsup9
SG(1) User Commands SG(1)
sg - execute command as different group ID
sg [-] [group [-c ] command]
The sg command works similar to newgrp but accepts a command. The command will be executed with the /bin/sh shell. With most shells you may
run sg from, you need to enclose multi-word commands in quotes. Another difference between newgrp and sg is that some shells treat newgrp
specially, replacing themselves with a new instance of a shell that newgrp creates. This doesn't happen with sg, so upon exit from a sg
command you are returned to your previous group ID.
The following configuration variables in /etc/login.defs change the behavior of this tool:
Enable "syslog" logging of sg activity.
User account information.
Secure user account information.
Group account information.
Secure group account information.
id(1), login(1), newgrp(1), su(1), gpasswd(1), group(5), gshadow(5).
shadow-utils 184.108.40.206 05/25/2012 SG(1)