![]() |
|
|
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 |
| duplicate rows in a file | infyanurag | Shell Programming and Scripting | 3 | 05-22-2008 01:39 AM |
| Extract duplicate fields in rows | anhtt | Shell Programming and Scripting | 6 | 12-02-2007 09:58 PM |
| How to extract duplicate records with associated header record | run_eim | UNIX for Dummies Questions & Answers | 17 | 01-16-2007 11:46 PM |
| Cut rows | obedkhan | HP-UX | 2 | 08-23-2006 10:36 AM |
| Concatenate 2 rows into 1 row | indianadoug | Shell Programming and Scripting | 4 | 03-11-2005 11:05 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to extract duplicate rows
I have searched the internet for duplicate row extracting.
All I have seen is extracting good rows or eliminating duplicate rows. How do I extract duplicate rows from a flat file in unix. I'm using Korn shell on HP Unix. For.eg. FlatFile.txt ======== 123:456:678 123:456:678 123:456:876 345:457:987 345:457:987 345:123:745 The output should be OutPutFile.txt ============ 123:456:678 345:457:987 I appreciate your help in advance. Thanks |
| Bookmarks |
| Tags |
| shell script, shell scripting, unix scripting, unix scripting basics |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|