![]() |
|
|
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 |
| Replacing words in a fast way | phil_heath | Shell Programming and Scripting | 5 | 07-27-2009 04:30 AM |
| awk after words | flekzout | Shell Programming and Scripting | 6 | 05-11-2009 01:58 PM |
| Sed replacing words with abbreviations | mauler123 | Shell Programming and Scripting | 4 | 03-03-2009 08:41 AM |
| Get the words.. | kakashi_jet | Shell Programming and Scripting | 10 | 07-31-2006 10:30 AM |
| Replacing words in a file | adam85 | High Level Programming | 1 | 04-07-2006 12:27 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Replacing words
Hi, I have am using a file that contains names that I want to replace. Basically file 1 looks like this Code:
jack joe james john I have another file (file 2) that looks like this Code:
jack 2345 joe 6848 james 3342 john 3432 Basically I want to replace column1 from file1 with column 2 from file 2 if its a match. The two files are of different length. Is there a fast way of doing this? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|