![]() |
|
|
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 |
| Awk+Grep Input file needs to match a column and print the entire line | poliver | Shell Programming and Scripting | 3 | 03-16-2009 09:09 AM |
| Replacing data of output file with input | bhagya2340 | Shell Programming and Scripting | 10 | 01-29-2009 02:09 PM |
| Reading specific contents from 1 input files and appending it to another input file | sksahu | Shell Programming and Scripting | 5 | 01-14-2009 06:09 AM |
| Using input file to filter data from another file | tumblez | UNIX for Dummies Questions & Answers | 1 | 07-21-2008 05:21 PM |
| read/writte/input data in file. | dorek | Shell Programming and Scripting | 0 | 06-22-2006 08:31 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Need script to take input from file, match on it in file 2 and input data
All,
I am trying to figure out a script to run in windows that will allow me to match on First column in file1 to 8th Column in File2 then Insert file1 column2 to file2 column4 then create a new file. File1: 12345 Sam 12346 Bob 12347 Bill File2: Modify|Samuel|Smith||US|Indianapolis|23|12345 Modify|Robert|Smiley||US|Indianapolis|23|12346 Modify|William|Butterworth||US|Indianapolis|23|12347 So once matched and inserted new file would contain: Modify|Samuel|Smith|Sam|US|Indianapolis|23|12345|... Modify|Robert|Smiley|Bob|US|Indianapolis|23|12346 Modify|William|Butterworth|Bill|US|Indianapolis|23|12347 Can I do this in perl or do I need to do it somewhere else? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|