tux242 has asked for the wisdom of the Perl Monks concerning the following question:
I am going to try this one last time at the risk of being flogged or drawn and quartered, only because the previous suggestions never worked - Here is what I am trying to do, I have 2 colon delimited "/etc/passwd" like files with a unique key at the beginning of each line on each one, the second file is a subset of the first or master file, i need all of the files from the subset matched up with the same keys in the master file and the rest of the master listing concatenated onto the end of the subset keys listing, see below:
File 1 - master list key1 other stuff key2 other stuff key3 other stuff ... File 2 - subset listing key1 more stuff key3 more stuff ... Desired result: File3 - final listing - subset listing with matching k +eys from master listing concatenated at end key1 more stuff other stuff key3 more stuff other stuff
Thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: subset extraction from master file
by broquaint (Abbot) on Nov 18, 2003 at 16:01 UTC | |
|
Re: subset extraction from master file
by davido (Cardinal) on Nov 18, 2003 at 16:03 UTC | |
by tux242 (Acolyte) on Nov 18, 2003 at 16:30 UTC | |
by davido (Cardinal) on Nov 18, 2003 at 16:34 UTC | |
|
Re: subset extraction from master file
by duff (Parson) on Nov 18, 2003 at 18:38 UTC | |
|
Re: subset extraction from master file
by Anonymous Monk on Nov 18, 2003 at 16:14 UTC | |
|
Re: subset extraction from master file
by ptkdb (Monk) on Nov 18, 2003 at 16:11 UTC | |
|