Sponsored Content
Top Forums Shell Programming and Scripting how to group records in a file Post 302350511 by trichyselva on Friday 4th of September 2009 05:33:32 AM
Old 09-04-2009
how to group records in a file

hi,
I have records like this



D127@dm.com,127,569,BRAD,25/08/2009 23:59
D127@dm.com,127,569,BRAD,25/08/2009 23:59
D159@dm.com,159,1170,DAVE,25/08/2009 23:59
D159@dm.com,159,1181,HALE,25/08/2009 23:59
D393@dm.com,393,1209,CAPIT,25/08/2009 23:59
D457@dm.com,457,571,NORTT,25/08/2009 23:59
D460@dm.com,460,4184,OKEEC,25/08/2009 23:59

I want to group records like this into different files

D127@dm.com
-----------
D127@dm.com,127,569,BRAD,25/08/2009 23:59
D127@dm.com,127,569,BRAD,25/08/2009 23:59




D159@dm.com
-----
D159@dm.com,159,1170,DAVE,25/08/2009 23:59
D159@dm.com,159,1181,HALE,25/08/2009 23:59

D393@dm.com
-----
D393@dm.com,393,1209,CAPIT,25/08/2009 23:59

D457@dm.com
-----
D457@dm.com,457,571,NORTT,25/08/2009 23:59

D460@dm.com
-----
D460@dm.com,460,4184,OKEEC,25/08/2009 23:59

can any one help me on this?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

find and group records in a file

Hi, 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
20 Replies

2. Shell Programming and Scripting

Column sum group by uniq records

Dear All, I want to get help for below case. I have a file like this. saman 1 gihan 2 saman 4 ravi 1 ravi 2 so i want to get the result, saman 5 gihan 2 ravi 3 like this. Pls help me. (17 Replies)
Discussion started by: Nayanajith
17 Replies

3. Shell Programming and Scripting

command to group records

hi, i have records like this supplier,product, persons involved 10,150,ravi@yahoo.com 30,200,ravi@yahoo.com 20,111,payal@gmail.com 40,211,ravi@yahoo.com i want to write a command which displays values like this 10,30,40,ravi@yahoo.com for ravi@yahoo.com if there are n number of... (7 Replies)
Discussion started by: trichyselva
7 Replies

4. Shell Programming and Scripting

KSH to group records in a file and compare it with another file

Hi, I've a file like below: DeptFile.csv DeptID EmpID ------- ------ Dep01 Emp01 Dep01 Emp02 Dep01 Emp03 Dep02 Emp04 Dep02 Emp05 I've another file which has EmpFile.csv EmpID Salary ------ ------ (3 Replies)
Discussion started by: Matrix2682
3 Replies

5. Infrastructure Monitoring

Processing records as group - awk

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 service "snmp-udp" exit 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
3 Replies

6. UNIX for Dummies Questions & Answers

keeping last record among group of records with common fields (awk)

input: ref.1;rack.1;1 #group1 ref.1;rack.1;2 #group1 ref.1;rack.2;1 #group2 ref.2;rack.3;1 #group3 ref.2;rack.3;2 #group3 ref.2;rack.3;3 #group3 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
5 Replies

7. UNIX for Advanced & Expert Users

Group the records based on empno and send mail

Hi All, 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. kiran|1111|draft|aaa@gmail.com guna|2222|reject|bbb@gmail.com kiran|1111|submitter|aaa@gmail.com... (2 Replies)
Discussion started by: kiranparsha
2 Replies

8. Shell Programming and Scripting

Sorting group of records and loading last record

Hi Everyone, I have below record set. File is fixed widht file 101newjersyus 20150110 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 Replies

9. UNIX for Beginners Questions & Answers

Awk: group multiple fields from different records

Hi, My input looks like that: A|123|qwer A|456|tyui A|456|wsxe B|789|dfgh Using awk, I am trying to get: A|123;456|qwer;tyui;wsxe B|789|dfgh 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
6 Replies

10. Shell Programming and Scripting

To group records in the file in UNIX

Hi All, 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
5 Replies
VITE(1) 							 ViTE Manual Pages							   VITE(1)

	 ..___________..._
    __vXXX=========onn=XX=X=s_..
_a=X=============v:|||||i:lvvn=Xn_,
 "!XX===========v||||||||||||iiiv=Xn_
    -"!XX======v||||||||||||iii:::vn=Xs
	 ""!!!Zl|||||||||||iii::lIlvvnXX,.
	      Jl||||||||||i:vvvvlIvvvvv=Zc
	     _e|||||||||ia}"""""!=anvnvnnXno=========aa_.
	     ]l||||||||v}'	   "Xnnnnnn=o=====XXXX=adZ=__
	     =||||||||n(	   .3nnnon=======X=Xs..___X|%!n_,
	    )1||||||i;^ 	    3=noo=======X=XXXZ1v|i|||||iIs,
	    X||||||a!		    3=n========X=X=X=Ii||||||||||iIs,
	  .Jl|||va!		   .==o=o=====X=XXX=li|||||||||||||i3..
	  )na:!"`		    =========X=XX=1:|||||||||||||||||)a
	  ..			   .========X=XXIIi||||||||||||||||||v}
				    X=====X=X=1l|i|||||||||||||<a>}""^
				   .X===X==1Ii||||||||||||<a>""`:
				    +X=nI:i|||:llv_asl}"""`
				     -ni||<c"^.
				      -1%<e.
					!3`

NAME
vite - a visual trace explorer SYNOPSIS
vite vite -h vite [-f|-a] file_path [-e export_path] [-t [time_init]:[time_end]] DESCRIPTION
ViTE is a visual trace explorer. It is a useful tool for profiling and debugging parallel programs (multi-process or multi-core). ViTE reads program execution trace data from file (currently in Paje trace format) and display it in a graphical interface. Program execu- tion data could be a state (drawn as a colored rectangle - color depends of the kind of state), an event (drawn as a green disc) or a com- munication between two processes (drawn as a white arrow). OPTIONS
ViTE accepts the following options: -h Display help. -f file_path Open the file_path file. -a file_path Open the file_path file and display it entirely. -e export_path Export the opened trace file (with -f or -a option) to the export_path file in SVG format. -t [time_init]:[time_end] Just parse trace from time_init to time_end. If time_init is missed, trace will be parsed from the minimum time to time_end. If time_end is missed, trace will be parsed from time_init to the maximum time. AUTHORS
ViTE was created by a group of french engineering school students for the INRIA research center. REPORTING BUGS
Report bugs to ViTE developers <vite-developpeurs@lists.gforge.inria.fr>. COPYRIGHT
ViTE was released under the CeCILL-A licence. The content can be found here: http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt. Copyright (C) 2009 Kevin COULOMB Copyright (C) 2009 Johnny JAZEIX Copyright (C) 2009 Olivier LAGRASSE Copyright (C) 2009 Jule MARCOUEILLE Copyright (C) 2009 Pascal NOISETTE Copyright (C) 2009 Arthur REDONDY Copyright (C) 2009 Clement VUCHENER This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Version 1.2 April 2009 VITE(1)
All times are GMT -4. The time now is 11:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy