01-27-2009
While I'm happy to help, I don't have time to do it all for you. Try to understand the awk code provided and modify it to fit your requirements. Others may help if you get stuck.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Everyone,
I have a flat file of 1000 unique records like following : For eg
Andy,Flower,201-987-0000,12/23/01
Andrew,Smith,101-387-3400,11/12/01
Ani,Ross,401-757-8640,10/4/01
Rich,Finny,245-308-0000,2/27/06
Craig,Ford,842-094-8740,1/3/04
.
.
.
.
.
.
Now I want to duplicate... (9 Replies)
Discussion started by: ganesh123
9 Replies
2. Shell Programming and Scripting
Hi all
pls help me by providing soln for my problem
I'm having a text file which contains duplicate records .
Example:
abc 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452
abc 1000 3452 2463 2343 2176 7654 3452 8765 5643 3452
tas 3420 3562 ... (1 Reply)
Discussion started by: G.Aavudai
1 Replies
3. Shell Programming and Scripting
Dear All,
I have one file which looks like :
account1:passwd1
account2:passwd2
account3:passwd3
account1:passwd4
account5:passwd5
account6:passwd6
you can see there're two records for account1. and is there any shell command which can find out : account1 is the duplicate record in... (3 Replies)
Discussion started by: tiger2000
3 Replies
4. Shell Programming and Scripting
Hi,
Need to find a duplicate records on the first column,
ANU4501710430989 0000000W20389390
ANU4501710430989 0000000W67065483
ANU4501130050520 0000000W80838713
ANU4501210170685 0000000W69246611... (3 Replies)
Discussion started by: Murugesh
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a file with these records
abc
xyz
xyz
pqr
uvw
cde
cde
In my o/p file , I want all the non duplicate rows to be shown.
o/p abc
pqr
uvw
Any suggestions how to do this?
Thanks for the help.
rs (2 Replies)
Discussion started by: rs123
2 Replies
6. UNIX for Dummies Questions & Answers
Hi Unix gurus,
Maybe it is too much to ask for but please take a moment and help me out. A very humble request to you gurus. I'm new to Unix and I have started learning Unix. I have this project which is way to advanced for me.
File format: CSV file
File has four columns with no header... (8 Replies)
Discussion started by: arvindosu
8 Replies
7. UNIX for Dummies Questions & Answers
Consider my input is
10
10
20
then,
uniq -u will give 20 and uniq -dwill return 10.
But i need the output as ,
10
10
How we can achieve this?
Thanks (4 Replies)
Discussion started by: pandeesh
4 Replies
8. Shell Programming and Scripting
Hi,
In a file, I have to mark duplicate records as 'D' and the latest record alone as 'C'.
In the below file, I have to identify if duplicate records are there or not based on Man_ID, Man_DT, Ship_ID and I have to mark the record with latest Ship_DT as "C" and other as "D" (I have to create... (7 Replies)
Discussion started by: machomaddy
7 Replies
9. Shell Programming and Scripting
I have 2 files
"File 1" is delimited by ";" and "File 2" is delimited by "|".
File 1 below (3 record shown):
Doc1;03/01/2012;New York;6 Main Street;Mr. Smith 1;Mr. Jones
Doc2;03/01/2012;Syracuse;876 Broadway;John Davis;Barbara Lull
Doc3;03/01/2012;Buffalo;779 Old Windy Road;Charles... (2 Replies)
Discussion started by: vestport
2 Replies
10. Shell Programming and Scripting
Gents,
Please give a help
file
--BAD STATUS NOT RESHOOTED--
*** VP 41255/51341 in sw 2973
*** VP 41679/51521 in sw 2973
*** VP 41687/51653 in sw 2973
*** VP 41719/51629 in sw 2976
--BAD COG NOT RESHOOTED--
*** VP 41689/51497 in sw 2974
*** VP 41699/51677 in sw 2974
*** VP... (18 Replies)
Discussion started by: jiam912
18 Replies
trpt(8) System Manager's Manual trpt(8)
NAME
trpt - Transliterates protocol trace
SYNOPSIS
trpt [-afjst] [-p address]
FLAGS
Print the values of the source and destination addresses for each packet recorded, in addition to the normal output. Follows the trace as
it occurs, waiting briefly for additional records each time the end of the log is reached. Lists the protocol control block addresses for
which trace records exist. Shows only trace records associated with the protocol control block specified in hexadecimal by the address
variable.
You must include a space between the -p flag and the address variable when you specify this flag. Prints a detailed description of
the packet-sequencing information, in addition to the normal output. Prints the values for all timers at each point in the trace,
in addition to the normal output.
DESCRIPTION
The trpt command, used for debugging sockets, queries the buffer of Transmission Control Protocol (TCP) trace records. The TCP trace
record buffer is created when a socket is marked for debugging with the setsockopt(2) subroutine. The trpt command queries the buffer and
then prints a description of the trace records.
When you specify no options, the trpt command prints all the trace records found in the system and groups them according to their TCP/IP
connection Protocol Control Block (PCB).
If you are debugging a system file other than the default, the system argument can be used to replace the default.
Before you can use the trpt command, you must do the following: Isolate the problem and mark for debugging the socket or sockets involved
in the connection. Find the address of the protocol control blocks associated with these sockets by using the netstat -aA command. Then,
you can run the trpt command, using the -p flag to supply the associated protocol control block addresses. You can specify multiple -p
address flags with a single trpt command.
The -f flag can be used to follow the trace log once it is located. The -j flag can be used to check for the presence of trace records for
the socket in question.
If the system image does not contain the proper symbols to find the trace buffer, the trpt command cannot succeed.
FILES
Specifies the command path
RELATED INFORMATION
Commands: netstat(1)
Functions: setsockopt(2) delim off
trpt(8)