![]() |
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 |
| Delete words in File 1 from File 2 | Enobarbus37 | Shell Programming and Scripting | 14 | 02-15-2008 08:09 AM |
| Extracting data from text file based on configuration set in config file | suparnbector | Shell Programming and Scripting | 3 | 08-10-2007 02:25 AM |
| Read words from file and create new file using K-shell. | bsrajirs | Shell Programming and Scripting | 4 | 06-01-2007 12:15 PM |
| how to replace a text inside a file based on a xml key | reldb | Shell Programming and Scripting | 4 | 03-11-2007 04:15 AM |
| How to replace a word with a series of words in a file | brap45 | Shell Programming and Scripting | 2 | 02-21-2006 02:33 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
replace words in file based on another file
Hello,
Can someone kindy help me solve this problem..I am using SunOS shell script I got a file A with following content: This is my correct document. I wrote 111 This is my incorrect word , 222 This is my wrong statement 333 This is my correct document 444 This is my correct document 555 if the fifth word is document, then replace the word with a new word according to the config file. If the content of config file B is 111,one 555,five then the result updated in file A shoud be: This is my correct document. I wrote one This is my incorrect word , 222 This is my wrong statement 333 This is my correct document 444 This is my correct document five even document is the fifth element, 444 will not be updated because 444 is not appeared in config file... Can someone show me how to accomplish this? thx! |
|
||||
|
thx alot for yr explanation
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|