![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| compare array contents with file | orahi001 | UNIX for Dummies Questions & Answers | 0 | 03-25-2008 05:44 PM |
| search for the contents in many file and print that file using shell script | cdfd123 | Shell Programming and Scripting | 3 | 10-07-2007 11:17 PM |
| Replace contents of a file | shiroh_1982 | Shell Programming and Scripting | 2 | 05-25-2006 10:19 AM |
| Creating file contents using contents of another file | ReV | Shell Programming and Scripting | 21 | 02-24-2006 10:25 AM |
| Reading specific contents from a file and appending it to another file | dnicky | Shell Programming and Scripting | 5 | 10-04-2005 06:45 AM |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
||||
|
Compare & replace contents within a file
I have 2 files
file1 Code:
1 TMQUEUE QUE1 STMW633A 100 DMADM DOMGRPSTMW633A STMW633A 100 GWADM GWTGRPSTMW633A STMW633A 100 GWADM GWTGRPSTMW633AA STMW633A 100 GWADM GWTGRPSTMW638A STMW638A 100 TMSYSEVT EVTGRPSTMW633A STMW633A 100 TMSYSEVT EVTGRPSTMW638A STMW638A 100 WSL WSLGRPSTMW633A STMW633A 100 WSL WSLGRPSTMW638A STMW638A Code:
1 TMQUEUE QUE1 1 100 DMADM DOMGRPSTMW633A 1 100 GWADM GWTGRPSTMW633A 1 100 GWADM GWTGRPSTMW633AA 1 100 GWADM GWTGRPSTMW638A 1 100 TMSYSEVT EVTGRPSTMW633A 1 100 TMSYSEVT EVTGRPSTMW638A 1 100 WSL WSLGRPSTMW633A 1 100 WSL WSLGRPSTMW638A 1 1st column in file2 with the 4th column in file1 by comparing first 3 columns from both the files. Thanks in advance Last edited by Yogesh Sawant; 05-27-2008 at 08:12 AM.. Reason: added code tags |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|