![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do you delete multiple text from a comma delimited file | dolo21taf | Shell Programming and Scripting | 1 | 02-20-2008 05:12 AM |
| Duplicate records from oracle to text file. | shilendrajadon | UNIX for Advanced & Expert Users | 1 | 01-10-2008 11:21 AM |
| Remove all instances of duplicate records from the file | vukkusila | Shell Programming and Scripting | 3 | 12-12-2007 07:50 AM |
| delete records from a file | dsravan | Shell Programming and Scripting | 6 | 09-10-2007 10:49 AM |
| how to extract a tilde delimited file in unix | trichyselva | Shell Programming and Scripting | 12 | 03-06-2007 12:19 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Delete Duplicate records from a tilde delimited file
Hi All,
I want to delete duplicate records from a tilde delimited file. Criteria is considering the first 2 fields, the combination of which has to be unique, below is a sample of records in the input file 1620000010338~2446694087~0~20061130220000~A00BCC1CT 1620000126196~2446694087~0~20061130220000~A00BCC1CT 1620000126196~2446694087~1~20061430220000~A00BCC1CT 1620000127475~2446694087~0~20061130220000~A00BCC1CT 1620000134743~2446694087~0~20061130220000~A00BCC1CT 1620000134743~2446694087~0~20060930220000~A00BCC1CT here we notice that record 3 and 6 are duplicate records. let me how to do this in shell script. Thanks in Advance |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|