![]() |
|
|
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 |
| Comparing two files | ragavhere | Shell Programming and Scripting | 32 | 12-04-2008 01:24 PM |
| Comparing two txt files - pls help | jisha | Shell Programming and Scripting | 5 | 01-23-2008 04:14 AM |
| Comparing two files.. | padarthy | Shell Programming and Scripting | 1 | 08-29-2007 09:01 AM |
| comparing shadow files with real files | terrym | UNIX for Advanced & Expert Users | 4 | 02-09-2007 02:38 AM |
| comparing two files using awk. | jerome Sukumar | Shell Programming and Scripting | 4 | 11-22-2006 06:27 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I really need help on creating a script that does the following:
I have one file (File 1) with lines in the following format: Name.maf score1 score2 I have a second file (File 2) with lines in the following format: label start end Name What I need to do is compare File 1 and File 2. When the Name matches, then I need to add the "label, "start" and "end" column's value of File 2 to the 2nd, third and fourth column of File 1 to get Output Name.maf label start end score1 score2 The trick here too is that what needs to match is only the Name, not the entire Name.maf. e.g. hello.maf and hello would be Name matches. Any help would be very much appreciated! Thanks! ![]() Last edited by awknerd; 08-31-2008 at 07:50 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|